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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user