summaryrefslogtreecommitdiff
path: root/scripts/Scripts/setwall
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-16 15:56:24 +0200
committerJulian T <julian@jtle.dk>2020-09-16 15:56:24 +0200
commit7938bab1a0b3d90492a0f82706569f2f7f9eeb23 (patch)
tree02519cfbf31f7a0da1ba5933ddb5b4b7279c5efe /scripts/Scripts/setwall
parenta52a730658403e7fdc51defeaabffc7856575459 (diff)
Draft system for waylandwayland
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() {