diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-02-13 12:56:57 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-02-13 12:56:57 +0900 |
| commit | a4c48b0ea0b2b1d474d503fb8d924d190762e999 (patch) | |
| tree | ea3304df1e7df98e173270461b3c90a43cba4b6c /config/hypr/scripts/KeyBinds.sh | |
| parent | dd46262fdfaabebb6fd2213a9baec91dd4244086 (diff) | |
Improvements on the rofi.
Utilized message function for additional informations when script is used in conjunction with rofi
Diffstat (limited to 'config/hypr/scripts/KeyBinds.sh')
| -rwxr-xr-x | config/hypr/scripts/KeyBinds.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/hypr/scripts/KeyBinds.sh b/config/hypr/scripts/KeyBinds.sh index f80211f5..ffa53281 100755 --- a/config/hypr/scripts/KeyBinds.sh +++ b/config/hypr/scripts/KeyBinds.sh @@ -14,7 +14,8 @@ fi KEYBINDS_CONF="$HOME/.config/hypr/configs/Keybinds.conf" USER_KEYBINDS_CONF="$HOME/.config/hypr/UserConfigs/UserKeybinds.conf" LAPTOP_CONF="$HOME/.config/hypr/UserConfigs/Laptop.conf" -rofi_theme="~/.config/rofi/config-keybinds.rasi" +rofi_theme="$HOME/.config/rofi/config-keybinds.rasi" +msg='☣️ NOTE ☣️: Clicking with Mouse or Pressing ENTER will have NO function' # Combine the contents of the keybinds files and filter for keybinds KEYBINDS=$(cat "$KEYBINDS_CONF" "$USER_KEYBINDS_CONF" | grep -E '^(bind|bindl|binde|bindm)') @@ -25,11 +26,11 @@ if [[ -f "$LAPTOP_CONF" ]]; then KEYBINDS+=$'\n'"$LAPTOP_BINDS" fi -# check for any keybinds to display +# Check for any keybinds to display if [[ -z "$KEYBINDS" ]]; then echo "No keybinds found." exit 1 fi -# Use rofi to display the keybinds -echo "$KEYBINDS" | rofi -dmenu -i -config $rofi_theme
\ No newline at end of file +# Ensure the message is being passed correctly +echo "$KEYBINDS" | rofi -dmenu -i -config "$rofi_theme" -mesg "$msg" |
