Screenshot support

This commit is contained in:
2024-07-07 14:16:38 +03:00
parent 77077b0192
commit 656680409b
7 changed files with 34 additions and 14 deletions
+22 -14
View File
@@ -20,19 +20,26 @@ bind = alt, Q, killactive # alt + Q - kill active
bind = $mainMod, S, swapactiveworkspaces, 0 1 # S - swap monitor workspaces
bind = $mainMod, T, exec, $terminal # T - terminal
bind = $mainMod, V, togglefloating # V - toggle floatin
bind = $mainMod, F1, exec, ~/.config/hypr/game-mode.sh # F1 - game mode
bind = $mainMod, F2, exec, eww open --toggle monitor-bump
bind = $mainMod, F1, exec, ~/.config/hypr/scripts/game-mode.sh # F1 - game mode
bind = $mainMod, F2, exec, eww open --toggle monitor-bump # F2 - monitor bump
bind = alt, space, exec, $menu # alt+space - rofi a la spotlight
bind = alt, space, exec, $menu # alt+space - rofi a la spotlight
bind = alt win shift, e, exec, $emojiMenu # alt+win+shift+e - emoji menu
# eww
bind = ctrl shift win, Q, exec, eww open --toggle power-menu
bind = ctrl shift win, M, exec, eww open --toggle media-menu
bind = ctrl shift win, R, exec, ~/.config/hypr/run-apps.sh
bind = ctrl shift win, R, exec, ~/.config/hypr/scripts/run-apps.sh
bind = ctrl shift win, W, exec, ~/Scripts/wallpaper # change wallpapers
# screenshots
# TODO: consider switching away to different shortcuts
bind = alt shift, 3, exec, ~/.config/hypr/scripts/screenshots/capture-screen.sh
bind = ctrl alt shift, 3, exec, ~/.config/hypr/scripts/screenshots/copy-screen.sh
bind = alt shift, 4, exec, ~/.config/hypr/scripts/screenshots/capture-area.sh
bind = ctrl alt shift, 4, exec, ~/.config/hypr/scripts/screenshots/copy-area.sh
### Window Management
@@ -70,17 +77,18 @@ bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# TODO: disabled due to incompatibility with screenshots
# Move active window to a workspace with ctrl + shift + alt + [0-9]
bind = ctrl shift alt, 1, movetoworkspace, 1
bind = ctrl shift alt, 2, movetoworkspace, 2
bind = ctrl shift alt, 3, movetoworkspace, 3
bind = ctrl shift alt, 4, movetoworkspace, 4
bind = ctrl shift alt, 5, movetoworkspace, 5
bind = ctrl shift alt, 6, movetoworkspace, 6
bind = ctrl shift alt, 7, movetoworkspace, 7
bind = ctrl shift alt, 8, movetoworkspace, 8
bind = ctrl shift alt, 9, movetoworkspace, 9
bind = ctrl shift alt, 0, movetoworkspace, 10
# bind = ctrl shift alt, 1, movetoworkspace, 1
# bind = ctrl shift alt, 2, movetoworkspace, 2
# bind = ctrl shift alt, 3, movetoworkspace, 3
# bind = ctrl shift alt, 4, movetoworkspace, 4
# bind = ctrl shift alt, 5, movetoworkspace, 5
# bind = ctrl shift alt, 6, movetoworkspace, 6
# bind = ctrl shift alt, 7, movetoworkspace, 7
# bind = ctrl shift alt, 8, movetoworkspace, 8
# bind = ctrl shift alt, 9, movetoworkspace, 9
# bind = ctrl shift alt, 0, movetoworkspace, 10
# go to next/prev workspace with ctrl alt hj
bind = ctrl alt, H, workspace, -1
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -d)" "$HOME/Pictures/Screenshots/$(date).png"
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -o)" "$HOME/Pictures/Screenshots/$(date).png"
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -d)" - | wl-copy
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
grim -g "$(slurp -o)" - | wl-copy