From 6f4aa3806f983c19046b149548ee1ee925ea2945 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Thu, 5 Nov 2026 17:36:19 +0100 Subject: [PATCH] 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. --- .config/xmonad/xmonad.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/xmonad/xmonad.hs b/.config/xmonad/xmonad.hs index 616c6a8..97b9aae 100644 --- a/.config/xmonad/xmonad.hs +++ b/.config/xmonad/xmonad.hs @@ -80,14 +80,14 @@ myScreenshotName = "Screenshot-%Y-%m-%d-%H%M%S.png" myScreenLayout :: String 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 = - "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 myScreenHotplug :: String -myScreenHotplug = myScreenLayout +myScreenHotplug = myScreenLayout ++ " --keep-wallpaper" myScratchpads :: [NamedScratchpad] myScratchpads =