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

10 lines
264 B
Nix

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