♻️ refactor(rofi): bindings picker to detect if keyb is installed
This commit is contained in:
parent
7a88cda87e
commit
3b6b8a44fe
2 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
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)
|
CONFIG=$(fd --base-directory "$HOME/.config/keyb/bindings" --type f . | sed 's/\.yml$//' | rofi -dmenu)
|
||||||
|
|
||||||
if [ -z "$CONFIG" ]; then
|
if [ -z "$CONFIG" ]; then
|
||||||
|
@ -7,3 +11,4 @@ if [ -z "$CONFIG" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$HOME/.config/keyb/bindings/$CONFIG.yml'"
|
hyprctl dispatch exec "[float;size 45% 80%;center 1] kitty keyb -k '$HOME/.config/keyb/bindings/$CONFIG.yml'"
|
||||||
|
fi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
configuration {
|
configuration {
|
||||||
modi: "drun,filebrowser";
|
modi: "drun";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
display-drun: "Apps";
|
display-drun: "Apps";
|
||||||
display-run: "Run";
|
display-run: "Run";
|
||||||
|
|
Loading…
Add table
Reference in a new issue