add alternative keybindings for screenshot under macbook

This commit is contained in:
Simon Rieger 2025-05-15 14:15:22 +02:00
parent 85417eca5d
commit 54a98bfd0c
2 changed files with 27 additions and 4 deletions

View file

@ -14,7 +14,8 @@ bind = $mainMod, Y, exec, cliphist list | fuzzel --dmenu | { read selection && [
bind = $mainMod+Shift, Y, exec, ~/.config/fuzzel/fuzzel-rbw.sh bind = $mainMod+Shift, Y, exec, ~/.config/fuzzel/fuzzel-rbw.sh
bind = $mainMod+Shift, M, exec, ~/.config/hypr/scripts/power.sh exit bind = $mainMod+Shift, M, exec, ~/.config/hypr/scripts/power.sh exit
bind = $mainMod+Shift, N, exec, swaync-client -t -sw bind = $mainMod+Shift, N, exec, swaync-client -t -sw
bind = $mainMod+Shift, P, exec, ~/.config/hypr/scripts/dotool_wp-paste.sh bind = $mainMod+Shift, O, exec, ~/.config/hypr/scripts/dotool_wp-paste.sh
# Toggle animations/blur/etc hotkey # Toggle animations/blur/etc hotkey
bind = $mainMod+Shift, G, exec, ~/.config/hypr/scripts/gamemode.sh bind = $mainMod+Shift, G, exec, ~/.config/hypr/scripts/gamemode.sh
bind = $mainMod, E, exec, $fileManager bind = $mainMod, E, exec, $fileManager
@ -23,9 +24,14 @@ bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, J, togglesplit, # dwindle
bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy
bind = $mainMod, Print, exec, grim -g "$(slurp -d)" - | satty -f - # Screenshot
bind = Super, Print, exec, grim -g "$(slurp -o -r -c '##ff0000ff')" -t ppm - | satty --filename - --fullscreen bind = , Print, exec, ~/.config/hypr/scripts/screenshot.sh area
bind = $mainMod, Print, exec, ~/.config/hypr/scripts/screenshot.sh edit
bind = Super, Print, exec, ~/.config/hypr/scripts/screenshot.sh window
bind = $mainMod, P, exec, ~/.config/hypr/scripts/screenshot.sh area
bind = $mainMod+Shift, P, exec, ~/.config/hypr/scripts/screenshot.sh edit
bind = Super, P, exec, ~/.config/hypr/scripts/screenshot.sh window
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l bind = $mainMod, left, movefocus, l

View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
case $1 in
"area")
grim -g "$(slurp -d)" - | wl-copy
;;
"edit")
grim -g "$(slurp -d)" - | satty -f -
;;
"window")
grim -g "$(slurp -o -r -c '##ff0000ff')" -t ppm - | satty --filename - --fullscreen
;;
*)
echo "Usage: $0 [area|edit|window]"
exit 1
;;
esac