nix/home/config/sway/module/Screenshot.nix

10 lines
284 B
Nix
Raw Normal View History

2024-06-23 04:55:57 +03:00
{ ... }: {
2024-04-06 03:03:58 +03:00
text = ''
# Fullscreen screenshot.
bindsym --to-code $mod+shift+v exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | wl-copy -t image/png
2024-04-06 03:03:58 +03:00
# Select screenshot.
bindsym --to-code $mod+v exec grim -g "$(slurp -d)" - | wl-copy
2024-04-06 03:03:58 +03:00
'';
}