diff --git a/hypr/scripts/keybindings.sh b/hypr/scripts/keybindings.sh index 03459ca..5b390e4 100755 --- a/hypr/scripts/keybindings.sh +++ b/hypr/scripts/keybindings.sh @@ -9,9 +9,17 @@ # ----------------------------------------------------- # ----------------------------------------------------- -# Define keybindings.conf location +# Get keybindings location based on variation # ----------------------------------------------------- -config_file=~/dotfiles/hypr/conf/keybindings.conf +config_file=$(cat ~/dotfiles/hypr/conf/keybinding.conf) +config_file=${config_file/source = ~/} +config_file=${config_file/source=~/} + +# ----------------------------------------------------- +# Path to keybindings config file +# ----------------------------------------------------- +config_file="/home/$USER$config_file" +echo "Reading from: $config_file" # ----------------------------------------------------- # Parse keybindings