nixos-config/modules/home/scripts/scripts/show-keybinds.sh
2024-12-30 16:05:37 +01:00

5 lines
226 B
Bash
Executable file

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')
fuzzel --width 75 --dmenu <<< "$keybinds"