Advertisement
Guest User

trayer

a guest
May 29th, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. main :: IO ()
  2. main = xmonad
  3. . ewmhFullscreen
  4. . ewmh
  5. . dynamicEasySBs barSpawner
  6. $ myConfig
  7.  
  8. xmobar1 = statusBarProp "xmobar -x 0 ~/.config/xmonad/.xmobarrc" (pure myXmobarPP) -- does not work with statusBarPropTo "_XMONAD_LOG_1", causes the bar to get stuck on updating...
  9. xmobar2 = statusBarProp "xmobar -x 1 ~/.config/xmonad/.xmobarrc1" (pure myXmobarPP)
  10.  
  11. barSpawner :: ScreenId -> IO StatusBarConfig
  12. barSpawner 0 = pure $ xmobar1 <> trayerSB
  13. barSpawner 1 = pure $ xmobar2
  14.  
  15. myManageHook :: ManageHook
  16. myManageHook = composeAll
  17. [ className =? "Gimp" --> doFloat
  18. , isDialog --> doFloat
  19. ]
  20.  
  21. staticStatusBar cmd = pure $ def { sbStartupHook = spawnStatusBar cmd
  22. , sbCleanupHook = killStatusBar cmd
  23. }
  24.  
  25. trayerSB :: IO StatusBarConfig
  26. trayerSB = staticStatusBar
  27. (unwords
  28. ["trayer"
  29. , "--edge top"
  30. , "--alight right"
  31. , "widthtype request"
  32. , "--expand true"
  33. , "--monitor primary"
  34. , "--transparent true"
  35. , "--alpha 0"
  36. , "-l"
  37. , "--tint 0x606060"
  38. , "--height 22"
  39. ]
  40. )
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement