fix variable substitution in configs

This commit is contained in:
Penelope Gwen 2025-02-28 10:32:11 +00:00
parent c73f984982
commit 1882b58821
3 changed files with 14 additions and 2 deletions

View file

@ -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[@]}"

5
bin/sp-profile Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
source "/usr/lib/sp-functions"
get_profile_name `cat ~/.cache/sway-profiles/active_profile`

7
debian/changelog vendored
View file

@ -1,6 +1,13 @@
sway-profiles (0.3.12) unstable; urgency=medium
* fix variable substitution in configs
-- Penelope Gwen <penelope@pogmom.me> 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 <penelope@pogmom.me> Fri, 28 Feb 2025 07:27:58 +0000