xmonad: keep the wallpaper on login and monitor hotplug

Startup and hotplug now pass --keep-wallpaper to screen-layout, so only fehbg.timer picks new random wallpapers.
This commit is contained in:
Daniele Fucini
2026-11-05 17:36:19 +01:00
parent 9da7cc8105
commit 6f4aa3806f
+3 -3
View File
@@ -80,14 +80,14 @@ myScreenshotName = "Screenshot-%Y-%m-%d-%H%M%S.png"
myScreenLayout :: String myScreenLayout :: String
myScreenLayout = "/home/fuxino/.local/bin/screen-layout" myScreenLayout = "/home/fuxino/.local/bin/screen-layout"
-- Safe to re-run (e.g. spawnOnce after this string changes and xmonad restarts) -- Safe to re-run (e.g. spawnOnce after this string changes and xmonad restarts); keeps the last wallpapers across logins
myScreenSetup :: String myScreenSetup :: String
myScreenSetup = myScreenSetup =
"sleep 1; " ++ myScreenLayout ++ "; pgrep -x picom > /dev/null || picom -b -c" "sleep 1; " ++ myScreenLayout ++ " --keep-wallpaper; pgrep -x picom > /dev/null || picom -b -c"
-- Run when a monitor is (dis)connected; restarts trayer so it moves to the right screen -- Run when a monitor is (dis)connected; restarts trayer so it moves to the right screen
myScreenHotplug :: String myScreenHotplug :: String
myScreenHotplug = myScreenLayout myScreenHotplug = myScreenLayout ++ " --keep-wallpaper"
myScratchpads :: [NamedScratchpad] myScratchpads :: [NamedScratchpad]
myScratchpads = myScratchpads =