From 02c9626c1da104fbcdf32b4b11896e3b9f650531 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 14 Feb 2025 12:18:52 +0900 Subject: updated keybinds --- config/hypr/scripts/KeyBinds.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/hypr/scripts/KeyBinds.sh b/config/hypr/scripts/KeyBinds.sh index ffa53281..639dd3a1 100755 --- a/config/hypr/scripts/KeyBinds.sh +++ b/config/hypr/scripts/KeyBinds.sh @@ -13,16 +13,16 @@ fi # Define the config files 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" +LAPTOP_CONF="$HOME/.config/hypr/UserConfigs/Laptops.conf" 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)') +KEYBINDS=$(cat "$KEYBINDS_CONF" "$USER_KEYBINDS_CONF" | grep -E '^bind') # Check if Laptop.conf exists and add its keybinds if present if [[ -f "$LAPTOP_CONF" ]]; then - LAPTOP_BINDS=$(grep -E '^(bind|bindl|binde|bindm)' "$LAPTOP_CONF") + LAPTOP_BINDS=$(grep -E '^bind' "$LAPTOP_CONF") KEYBINDS+=$'\n'"$LAPTOP_BINDS" fi @@ -32,5 +32,5 @@ if [[ -z "$KEYBINDS" ]]; then exit 1 fi -# Ensure the message is being passed correctly +# Use rofi to display the keybinds echo "$KEYBINDS" | rofi -dmenu -i -config "$rofi_theme" -mesg "$msg" -- cgit v1.2.3