From d35bee1aebc383e1cdc305bf2e8f93852e747ecf Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Thu, 30 Nov 2023 09:30:14 +0100 Subject: [PATCH] Fix getting the correct path from variation --- hypr/scripts/keybindings.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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