summaryrefslogtreecommitdiff
path: root/scripts/Scripts/setwall
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Scripts/setwall')
-rwxr-xr-xscripts/Scripts/setwall8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/Scripts/setwall b/scripts/Scripts/setwall
index f385623..2a99564 100755
--- a/scripts/Scripts/setwall
+++ b/scripts/Scripts/setwall
@@ -32,10 +32,16 @@ function setwalls() {
}
function applywall() {
+ set -x
echo applying wallpaper $1
rm $WALLLINK
ln -s $(pwd)/$1 $WALLLINK
- feh --bg-fill $1
+ if [ -z "${WAYLAND_DISPLAY}" ]; then
+ feh --bg-fill $1
+ else
+ killall swaybg
+ swaybg -m fill -i $1 &
+ fi
}
function help() {