Updates the hypr config to setup ghostty
This commit is contained in:
parent
1d1ec0138f
commit
7fceb17f3f
8 changed files with 161 additions and 11 deletions
|
|
@ -1,12 +1,11 @@
|
|||
#!/bin/bash
|
||||
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
||||
# Searchable enabled keybinds using rofi
|
||||
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## Searchable enabled keybinds using rofi
|
||||
|
||||
# Kill yad to not interfere with this binds
|
||||
pkill yad || true
|
||||
|
||||
# Check if rofi is already running
|
||||
if pidof rofi > /dev/null; then
|
||||
if pidof rofi >/dev/null; then
|
||||
pkill rofi
|
||||
fi
|
||||
|
||||
|
|
@ -20,15 +19,16 @@ KEYBINDS=$(cat "$KEYBINDS_CONF" "$USER_KEYBINDS_CONF" | grep -E '^(bind|bindl|bi
|
|||
|
||||
# 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")
|
||||
KEYBINDS+=$'\n'"$LAPTOP_BINDS"
|
||||
LAPTOP_BINDS=$(grep -E '^(bind|bindl|binde|bindm)' "$LAPTOP_CONF")
|
||||
KEYBINDS+=$'\n'"$LAPTOP_BINDS"
|
||||
fi
|
||||
|
||||
# check for any keybinds to display
|
||||
if [[ -z "$KEYBINDS" ]]; then
|
||||
echo "No keybinds found."
|
||||
exit 1
|
||||
echo "No keybinds found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Use rofi to display the keybinds
|
||||
echo "$KEYBINDS" | rofi -dmenu -i -p "Keybinds" -config ~/.config/rofi/config-keybinds.rasi
|
||||
echo "$KEYBINDS" | rofi -dmenu -i -p "Keybinds" -config ~/.config/rofi/config-keybinds.rasi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue