♻️ refactor(hypr): delete some redundant code for the scratchpad and screenshot bindings

This commit is contained in:
Sergio Laín 2024-05-05 13:38:09 +02:00
parent 116490c37f
commit 38df8196b8
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B

View file

@ -34,21 +34,21 @@ bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
# Scratchpads
bind = SUPER, V, exec, pypr toggle volume
bind = SUPER, 51, exec, pypr toggle terminal && hyprctl dispatch bringactivetotop # Backslash
bind = SUPER, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, I, exec, pypr toggle gpt && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, B, exec, pypr toggle bluetooth && hyprctl dispatch bringactivetotop
bind = SUPER, E, exec, pypr toggle yazi && hyprctl dispatch bringactivetotop
bind = SUPER, D, exec, pypr toggle dots && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, C, exec, pypr toggle cava && hyprctl dispatch bringactivetotop
bind = SUPER, U, exec, pypr toggle topgrade-system && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, U, exec, pypr toggle topgrade-all && hyprctl dispatch bringactivetotop
bind = SUPER, 51, exec, pypr toggle terminal # Backslash
bind = SUPER, B, exec, pypr toggle btop
bind = SUPERSHIFT, I, exec, pypr toggle gpt
bind = SUPERSHIFT, B, exec, pypr toggle bluetooth
bind = SUPER, E, exec, pypr toggle yazi
bind = SUPER, D, exec, pypr toggle dots
bind = SUPERSHIFT, C, exec, pypr toggle cava
bind = SUPER, U, exec, pypr toggle topgrade-system
bind = SUPERSHIFT, U, exec, pypr toggle topgrade-all
# Screenshotting
$hyprshot = ~/.config/hypr/scripts/hyprshot
bind = SHIFT, INSERT, exec, $hyprshot -m output -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png
bind = SUPERSHIFT, INSERT, exec, $hyprshot -m window -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png
bind = CTRL, INSERT, exec, $hyprshot -m region -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png
# Screenshot stuff
$hyprshot = ~/.config/hypr/scripts/hyprshot -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png
bind = SHIFT, INSERT, exec, $hyprshot -m output
bind = SUPERSHIFT, INSERT, exec, $hyprshot -m window
bind = CTRL, INSERT, exec, $hyprshot -m region
bind = ALT, INSERT, exec, ~/.config/hypr/scripts/rofi/screenshots_selection
# Logout menu