nixos-config/modules/home/scripts/scripts/keybinds.sh
2024-01-12 17:36:41 +01:00

7 lines
249 B
Bash
Executable file

#!/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"