Import wallpaper_outputs arguments from file
This commit is contained in:
parent
d9dfb30ca4
commit
04d4602325
|
@ -1,8 +1,9 @@
|
|||
#!/bin/sh
|
||||
# distrobox_binary
|
||||
# name: debian12
|
||||
USE_DISPLAYS=`cat /var/home/jpm/.spool/wallpaper_outputs`
|
||||
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
|
||||
if echo "${arg}" | grep -Eq "'|\""; then
|
||||
|
@ -20,5 +21,5 @@ if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
|
|||
done
|
||||
eval ${command}
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue