From a4c48b0ea0b2b1d474d503fb8d924d190762e999 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Feb 2025 12:56:57 +0900 Subject: Improvements on the rofi. Utilized message function for additional informations when script is used in conjunction with rofi --- config/hypr/scripts/KeyBinds.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'config/hypr/scripts/KeyBinds.sh') 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" -- cgit v1.2.3