From 048a3b859bcffef1b68c9d0f99319694f11cbd50 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 2 May 2023 19:04:46 +0300 Subject: [PATCH] sway: get wallpaper path from file --- config/.config/sway/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/.config/sway/config b/config/.config/sway/config index f3a902c..3e3d96d 100644 --- a/config/.config/sway/config +++ b/config/.config/sway/config @@ -37,6 +37,8 @@ set $textColor #cbccc6 set $mainMonitor "HDMI-A-1" set $laptopMonitor "eDP-1" +set $wallpaperPathFile "~/.config/.wallpaper" + set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob \ -a "bottom" \ @@ -82,7 +84,7 @@ workspace "$ws2" output $laptopMonitor workspace "$ws1" output $mainMonitor output * { - bg ~/dotfiles/wallpapers/guweiz-samurai.jpg fill + bg $(cat $wallpaperPathFile) fill } output $laptopMonitor {