feat: add screenshot keybind with the print key

This commit is contained in:
2025-10-23 15:30:09 +02:00
parent 37e49be6ce
commit 7f029b8f9e

View File

@@ -165,6 +165,7 @@ bind = $mainMod, E, exec, uwsm app -- $fileManager
bind = $mainMod, W, exec, uwsm app -- $browser
bind = $mainMod SHIFT, W, exec, uwsm app -- waypaper --state-file ~/.config/waypaper/state.ini --folder ~/.config/hypr/wallpapers
bind = $mainMod, S, exec, uwsm app -- sh -c 'IMG=$(xdg-user-dir PICTURES)/Screenshots/$(date +'%s_grim.png') && grim $IMG && wl-copy < $IMG' # screenshot
bind = ,print, exec, uwsm app -- sh -c 'IMG=$(xdg-user-dir PICTURES)/Screenshots/$(date +'%s_grim.png') && grim -g "$(slurp)" $IMG && wl-copy < $IMG' # screenshot only a part of the screen
bind = $mainMod SHIFT, S, exec, uwsm app -- sh -c 'IMG=$(xdg-user-dir PICTURES)/Screenshots/$(date +'%s_grim.png') && grim -g "$(slurp)" $IMG && wl-copy < $IMG' # screenshot only a part of the screen
bind = $mainMod, R, exec, uwsm app -- rofi -run-command='uwsm app -- {cmd}' -show drun -show-icons
bind = $mainMod, A, exec, uwsm app -- $aiChat