Files
shed/glasshouse-desktop/home/scripts/scripts/keybinds.sh
2024-10-10 03:53:44 -04:00

7 lines
267 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')
rofi -dmenu -theme-str 'window {width: 50%;}' <<< "$keybinds"