aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/KeyBinds.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-14 12:18:52 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-14 12:18:52 +0900
commit02c9626c1da104fbcdf32b4b11896e3b9f650531 (patch)
tree890e2294f14c53092bb6a5ebf18ef51763ead6a6 /config/hypr/scripts/KeyBinds.sh
parentc324edc48b7d6a6eaf65b3bb9fc3d46d65f4b3d8 (diff)
updated keybinds
Diffstat (limited to 'config/hypr/scripts/KeyBinds.sh')
-rwxr-xr-xconfig/hypr/scripts/KeyBinds.sh8
1 files 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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage