Added swappy for images and better screenshots

This commit is contained in:
Pablu23
2024-05-24 15:16:04 +02:00
parent 2194a84fc5
commit 650b633025
3 changed files with 11 additions and 3 deletions

View File

@@ -16,10 +16,11 @@ bind = $mainMod, D, exec, $discord
bind = $mainMod, B, exec, $browser
bind = $mainMod, L, exec, $hyprlock
bind = $mainMod, M, exec, $spotify
# also make sure you created a directory called screenshots in Pictures/ otherwise the screenshots won't appear anywhere
bind = $mainMod, S, exec, grim -o DP-3 "${HOME}/Pictures/screenshots/screenshot-$(date +%F-%T).png"
# screenshot + crop keybind
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" "${HOME}/Pictures/screenshots/screenshot-$(date +%F-%T).png"
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | swappy -f -
# Move focus with mainMod + arrow keys
# Maybe H J K L
@@ -53,8 +54,8 @@ bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# bind = $mainMod, S, togglespecialworkspace, magic
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1

View File

@@ -10,3 +10,6 @@ workspace=7,monitor:DP-2,persistent:true
workspace=8,monitor:DP-2,persistent:true
workspace=9,monitor:DP-2,persistent:true
workspace=0,monitor:DP-2,persistent:true
windowrulev2 = stayfocused, class:(swappy)