From 68b185dab25bad70fffa5ea86b4fa85467dccc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 30 Dec 2023 15:09:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(hypr):=20organize?= =?UTF-8?q?=20pickers=20code=20in=20binds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/hypr/configs/binds.conf | 23 ++++++++--------------- .config/hypr/scripts/rofi/keybindings | 1 + 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.config/hypr/configs/binds.conf b/.config/hypr/configs/binds.conf index f7431439..84bd682a 100644 --- a/.config/hypr/configs/binds.conf +++ b/.config/hypr/configs/binds.conf @@ -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 = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch neovide -# Launchers +# Pickers/Launchers 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 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, 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 = SUPER, E, exec, pypr toggle yazi && 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 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 ## Focusing on windows bind = SUPER, LEFT, movefocus, l diff --git a/.config/hypr/scripts/rofi/keybindings b/.config/hypr/scripts/rofi/keybindings index 7f4b4c05..ca914666 100755 --- a/.config/hypr/scripts/rofi/keybindings +++ b/.config/hypr/scripts/rofi/keybindings @@ -1,4 +1,5 @@ #!/usr/bin/bash + 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'"