diff --git a/config/xmobar/xmobarrc b/config/xmobar/xmobarrc index 21e2ffe5..df8b198c 100644 --- a/config/xmobar/xmobarrc +++ b/config/xmobar/xmobarrc @@ -12,7 +12,7 @@ Config { -- layout , sepChar = "%" -- delineator between plugin names and straight text , alignSep = "}{" -- separator between left-right alignment - , template = "%StdinReader% | %battery% | %multicpu% | %memory% | %dynnetwork% }{ %date% | %kbd% %_XMONAD_TRAYPAD% %tray%" + , template = "%StdinReader% | %battery% | %multicpu% | %memory% | %dynnetwork% }{ %date% | %kbd% %_XMONAD_TRAYPAD%" -- general behavior , lowerOnStart = True -- send to bottom of window stack on start @@ -79,7 +79,6 @@ Config { , "--normal" , "darkorange" , "--high" , "darkred" ] 10 - , Run Com "trayer" ["-l"] "tray" 20 , Run XPropertyLog "_XMONAD_TRAYPAD" -- battery monitor diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs index 054eb155..96e97e21 100644 --- a/config/xmonad/xmonad.hs +++ b/config/xmonad/xmonad.hs @@ -256,6 +256,7 @@ myLogHook h = dynamicLogWithPP $ def { ppOutput = hPutStrLn h } -- By default, do nothing. myStartupHook = do spawnOnce "keepassxc" + spawn "sleep 1 && killall trayer; trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --height 20 --transparent true --alpha 0 --tint #000000 --widthtype request" ------------------------------------------------------------------------ -- Now run xmonad with all the defaults we set up.