diff --git a/.config/rofi/scripts/keybindings/keybindings b/.config/rofi/scripts/keybindings/keybindings index 3ca6e27b..f1f34ffe 100755 --- a/.config/rofi/scripts/keybindings/keybindings +++ b/.config/rofi/scripts/keybindings/keybindings @@ -1,9 +1,14 @@ #!/bin/bash -CONFIG=$(fd --base-directory "$HOME/.config/keyb/bindings" --type f . | sed 's/\.yml$//' | rofi -dmenu) +if ! command -v keyb >/dev/null 2>&1; then + notify-send "Program not found" "Make sure you have installed cliphist" + exit 1 +else + CONFIG=$(fd --base-directory "$HOME/.config/keyb/bindings" --type f . | sed 's/\.yml$//' | rofi -dmenu) -if [ -z "$CONFIG" ]; then - exit + if [ -z "$CONFIG" ]; then + exit + fi + + hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$HOME/.config/keyb/bindings/$CONFIG.yml'" fi - -hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$HOME/.config/keyb/bindings/$CONFIG.yml'" diff --git a/.config/rofi/style.rasi b/.config/rofi/style.rasi index a70c9b79..ecfa811d 100644 --- a/.config/rofi/style.rasi +++ b/.config/rofi/style.rasi @@ -1,5 +1,5 @@ configuration { - modi: "drun,filebrowser"; + modi: "drun"; show-icons: true; display-drun: "Apps"; display-run: "Run";