From 7938bab1a0b3d90492a0f82706569f2f7f9eeb23 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 16 Sep 2020 15:56:24 +0200 Subject: Draft system for wayland --- scripts/Scripts/setwall | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/Scripts/setwall') 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() { -- cgit v1.2.3