Import wallpaper_outputs arguments from file

This commit is contained in:
John Mertz 2023-01-17 11:39:55 -05:00
parent d9dfb30ca4
commit 04d4602325
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/sh
# distrobox_binary # distrobox_binary
# name: debian12 # name: debian12
USE_DISPLAYS=`cat /var/home/jpm/.spool/wallpaper_outputs`
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="/usr/bin/distrobox-enter -n debian12 -- /var/home/jpm/scripts/sway/wallpaper.pl --path=/var/home/jpm/wallpapers -d HDMI-A-1 " command="/usr/bin/distrobox-enter -n debian12 -- /var/home/jpm/scripts/sway/wallpaper.pl --path=/var/home/jpm/wallpapers -d $USE_DISPLAYS "
for arg in "$@"; do for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then if echo "${arg}" | grep -Eq "'|\""; then
@ -20,5 +21,5 @@ if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
done done
eval ${command} eval ${command}
else else
/var/home/jpm/scripts/sway/wallpaper.pl /var/home/jpm/scripts/sway/wallpaper.pl --path=/var/home/jpm/wallpapers -d HDMI-A-1 "$@" /var/home/jpm/scripts/sway/wallpaper.pl /var/home/jpm/scripts/sway/wallpaper.pl --path=/var/home/jpm/wallpapers -d $USE_DISPLAYS "$@"
fi fi