Fix getting the correct path from variation

This commit is contained in:
Stephan Raabe 2023-11-30 09:30:14 +01:00
parent 93ed4b23bf
commit d35bee1aeb

View File

@ -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 # Parse keybindings