From 9d539ba69cfef4250c480375b36e42314b6df24e Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 18 Sep 2023 11:38:04 +1000 Subject: [PATCH] xmonad: improved background transitions --- .xmonad/xmonad.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 78f34a9..65d81db 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -48,7 +48,7 @@ myConfig = myStartupHook :: X () myStartupHook = do - spawnOnce "feh --bg-fill ~/Documents/images/posters/IMG_1088_resize.jpg" + spawnOnce myBackground spawnOnce myScreenLockCmd spawnOnce notifcationDaemon @@ -199,6 +199,7 @@ iogBrowser = "google-chrome-stable" launcher = "rofi -show drun" logseq = "logseq" musicPlayer = "spotify" +myBackground = "feh --bg-fill ~/Documents/images/posters/IMG_1088_resize.jpg" notifcationDaemon = "dunst" obs = "obs" screenshot = "flameshot gui" @@ -223,8 +224,8 @@ myKeybinds = ("M-i", spawn incognitoBrowser), ("M-f", spawn screenshot), ("M-p", spawn launcher), - ("M-S-e", spawn enableEDP1), - ("M-S-h", spawn enableHDMI1), + ("M-S-e", spawn enableEDP1 >> spawn myBackground ), + ("M-S-h", spawn enableHDMI1 >> spawn myBackground ), ("M-S-", spawn myTerminal), ("M-", kill1), -- Layout control