diff --git a/bin/sp-launcher b/bin/sp-launcher index a6ac9d1..233a379 100755 --- a/bin/sp-launcher +++ b/bin/sp-launcher @@ -5,7 +5,7 @@ source "/usr/lib/sp-functions" case $1 in file_manager ) launch_exec=${filemanager_cmd} - launch_arg=($( jq -r .[].home_directory "${conf_dir}/profiles/$( get_profile_id )/vars.json" )) + launch_arg=($( jq -r .[].home_directory "${conf_dir}/profiles/$( get_profile_id )/vars.json" | envsubst )) ;; browser ) launch_exec=${browser_cmd} @@ -19,4 +19,4 @@ case $1 in ;; esac -bash -c "${launch_exec} ${launch_arg[@]}" +${launch_exec} "${launch_arg[@]}" diff --git a/bin/sp-profile b/bin/sp-profile new file mode 100755 index 0000000..9f7a529 --- /dev/null +++ b/bin/sp-profile @@ -0,0 +1,5 @@ +#!/bin/bash + +source "/usr/lib/sp-functions" + +get_profile_name `cat ~/.cache/sway-profiles/active_profile` diff --git a/debian/changelog b/debian/changelog index d36716b..aea0022 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,13 @@ +sway-profiles (0.3.12) unstable; urgency=medium + + * fix variable substitution in configs + + -- Penelope Gwen Fri, 28 Feb 2025 10:30:49 +0000 + sway-profiles (0.3.11) unstable; urgency=medium * add sp-profile command which returns profile name + * add browser-newtab command to sp-launcher -- Penelope Gwen Fri, 28 Feb 2025 07:27:58 +0000