add keybind to view them all
This commit is contained in:
parent
0d0afbfd7c
commit
d57c8f635f
|
@ -132,6 +132,9 @@ in
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
||||||
|
# show keybinds list
|
||||||
|
bind = $mainMod, F1, exec, ~/.config/hypr/keybind
|
||||||
|
|
||||||
# keybindings
|
# keybindings
|
||||||
bind = $mainMod, Return, exec, kitty
|
bind = $mainMod, Return, exec, kitty
|
||||||
bind = ALT, Return, exec, kitty --title float_kitty
|
bind = ALT, Return, exec, kitty --title float_kitty
|
||||||
|
|
6
modules/home/scripts/scripts/keybinds.sh
Executable file
6
modules/home/scripts/scripts/keybinds.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
config_file=~/.config/hypr/hyprland.conf
|
||||||
|
keybinds=$(grep -oP '(?<=bind = ).*' $config_file)
|
||||||
|
keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
|
||||||
|
wofi -dmenu -p "Keybinds" <<< "$keybinds"
|
Loading…
Reference in a new issue