♻️ refactor(hypr): organize pickers code in binds

This commit is contained in:
Sergio Laín 2023-12-30 15:09:12 +01:00
parent 9dcaffad1a
commit 68b185dab2
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 9 additions and 15 deletions

View file

@ -22,14 +22,20 @@ bind = SUPERSHIFT, RETURN, exec, ~/.config/hypr/scripts/custom_app_launch kitty
bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim bind = SUPER, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch nvim
bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch neovide bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch neovide
# Launchers # Pickers/Launchers
bind = SUPER, 23, exec, rofi -show drun # Tab bind = SUPER, 23, exec, rofi -show drun # Tab
bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker
bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select
bind = SUPERCTRL, W, exec, ~/.config/hypr/scripts/wallpaper random
bind = SUPER, F1, exec, ~/.config/hypr/scripts/rofi/keybindings
bind = SUPERSHIFT, R, exec, ~/.config/hypr/scripts/rofi/recording
bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher
# Scratchpads # Scratchpads
bind = SUPER, V, exec, pypr toggle volume bind = SUPER, V, exec, pypr toggle volume
bind = SUPER, 51, exec, pypr toggle terminal && hyprctl dispatch bringactivetotop # Backslash bind = SUPER, 51, exec, pypr toggle terminal && hyprctl dispatch bringactivetotop # Backslash
bind = SUPER, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop bind = SUPER, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, G, exec, pypr toggle gpt && hyprctl dispatch bringactivetotop bind = SUPERSHIFT, I, exec, pypr toggle gpt && hyprctl dispatch bringactivetotop
bind = SUPERSHIFT, B, exec, pypr toggle bluetooth && 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, E, exec, pypr toggle yazi && hyprctl dispatch bringactivetotop
bind = SUPER, D, exec, pypr toggle dots && hyprctl dispatch bringactivetotop bind = SUPER, D, exec, pypr toggle dots && hyprctl dispatch bringactivetotop
@ -46,19 +52,6 @@ bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
# Logout menu # Logout menu
bind = SUPER, ESCAPE, exec, wleave bind = SUPER, ESCAPE, exec, wleave
# Color picker
bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker
# Wallpaper
bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select
bind = SUPERCTRL, W, exec, ~/.config/hypr/scripts/wallpaper random
# Keybindings Cheatsheet
bind = SUPER, F1, exec, ~/.config/hypr/scripts/rofi/keybindings
# Recording
bind = SUPERSHIFT, R, exec, ~/.config/hypr/scripts/rofi/recording
## Windows ## Windows
## Focusing on windows ## Focusing on windows
bind = SUPER, LEFT, movefocus, l bind = SUPER, LEFT, movefocus, l

View file

@ -1,4 +1,5 @@
#!/usr/bin/bash #!/usr/bin/bash
CONFIG=$(rofi -show file-browser-extended -file-browser-stdout -file-browser-dir "$HOME"/.config/keyb/bindings) CONFIG=$(rofi -show file-browser-extended -file-browser-stdout -file-browser-dir "$HOME"/.config/keyb/bindings)
hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$CONFIG'" hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$CONFIG'"