New configuration based on xfce4 + bpswm. No more tint2
This commit is contained in:
16
scripts/xfce4-le-wallpaper
Executable file
16
scripts/xfce4-le-wallpaper
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/env bash
|
||||
|
||||
monitors=($(xrandr | grep " connected " | awk '{ print$1 }'))
|
||||
monitor="${monitors[0]}"
|
||||
prop="/backdrop/screen0/monitor${monitor}/workspace0/last-image"
|
||||
wallpaper_dir="$HOME/.local/share/le_wallpaper"
|
||||
wallpaper_path="${wallpaper_dir}/wallpaper.png"
|
||||
|
||||
feh --bg-scale "$wallpaper_path"
|
||||
|
||||
xfconf-query -c xfce4-desktop -p "$prop" -m | while read -r line; do
|
||||
if echo "$line" | grep -e "^set:"; then
|
||||
echo "Wallpaper updated, reacting"
|
||||
le-wallpaper
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user