diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 6f3fcf0..5f97911 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -132,6 +132,9 @@ in # ---------------------------------------------------------------- + # show keybinds list + bind = $mainMod, F1, exec, ~/.config/hypr/keybind + # keybindings bind = $mainMod, Return, exec, kitty bind = ALT, Return, exec, kitty --title float_kitty diff --git a/modules/home/scripts/scripts/keybinds.sh b/modules/home/scripts/scripts/keybinds.sh new file mode 100755 index 0000000..c1837e1 --- /dev/null +++ b/modules/home/scripts/scripts/keybinds.sh @@ -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"