diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-11-05 14:02:06 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-11-05 14:02:06 +0900 |
| commit | a153022b7d457466db9140c62dc5564f9de7a3af (patch) | |
| tree | f3eeb3a6d892373678f7d86b3b095583d82aeb96 /config/hypr/scripts/keybindings.sh | |
| parent | 3fa5c6a5973d0cec5801f5b46da87e8ff2b7ee90 (diff) | |
changes for new Hyprland-Dots
Diffstat (limited to 'config/hypr/scripts/keybindings.sh')
| -rwxr-xr-x | config/hypr/scripts/keybindings.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/hypr/scripts/keybindings.sh b/config/hypr/scripts/keybindings.sh new file mode 100755 index 00000000..b6ee6e25 --- /dev/null +++ b/config/hypr/scripts/keybindings.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Define keybindings.conf location +# ----------------------------------------------------- +config_file="~/.config/hypr/configs/Keybinds.conf" + +# ----------------------------------------------------- +# Parse keybindings +# ----------------------------------------------------- +keybinds=$(grep -oP '(?<=bind = ).*' $config_file) +keybinds=$(echo "$keybinds" | sed 's/$mainMod/SUPER/g'| sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g') + +# ----------------------------------------------------- +# Show keybindings in rofi +# ----------------------------------------------------- +rofi -dmenu -p "Keybinds" -config ~/.config/rofi/config-short <<< "$keybinds"
\ No newline at end of file |
