fix variable substitution in configs
This commit is contained in:
parent
c73f984982
commit
1882b58821
3 changed files with 14 additions and 2 deletions
|
@ -5,7 +5,7 @@ source "/usr/lib/sp-functions"
|
||||||
case $1 in
|
case $1 in
|
||||||
file_manager )
|
file_manager )
|
||||||
launch_exec=${filemanager_cmd}
|
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 )
|
browser )
|
||||||
launch_exec=${browser_cmd}
|
launch_exec=${browser_cmd}
|
||||||
|
@ -19,4 +19,4 @@ case $1 in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
bash -c "${launch_exec} ${launch_arg[@]}"
|
${launch_exec} "${launch_arg[@]}"
|
||||||
|
|
5
bin/sp-profile
Executable file
5
bin/sp-profile
Executable 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
7
debian/changelog
vendored
|
@ -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
|
sway-profiles (0.3.11) unstable; urgency=medium
|
||||||
|
|
||||||
* add sp-profile command which returns profile name
|
* 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
|
-- Penelope Gwen <penelope@pogmom.me> Fri, 28 Feb 2025 07:27:58 +0000
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue