add set_wallpaper.sh
This commit is contained in:
parent
5d81c731da
commit
fd7d969d35
12
apps/set_wallpaper.sh
Normal file
12
apps/set_wallpaper.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if empty? "$1" then exec sh -c "echo 'usage: $0 WALLPAPER'"
|
||||
if not stat -Lq "$1" then exec sh -c "echo '$0: $1 does not exist'"
|
||||
|
||||
export-cmd DESKTOP cat /var/run/.wallpaper.pid
|
||||
if empty? "$DESKTOP" then sh -c "echo '$0: No wallpaper running?'"
|
||||
|
||||
echo "wallpaper=$1" > $HOME/.wallpaper.conf
|
||||
|
||||
kill -SIGUSR1 $DESKTOP
|
||||
|
Loading…
x
Reference in New Issue
Block a user