update script

This commit is contained in:
Frost-Phoenix 2024-04-13 14:24:21 +02:00
parent 3ac491502a
commit fff7ef1d9a

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
config_file=~/.config/hypr/hyprland.conf config_file=~/.config/hypr/hyprland.conf
keybinds=$(grep -oP '(?<=bind = ).*' $config_file) keybinds=$(grep -oP '(?<=bind=).*' $config_file)
keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g') keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
wofi -dmenu -p "Keybinds" <<< "$keybinds" wofi -W 750 -dmenu -p "Keybinds" <<< "$keybinds"