Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup trayer to be on all workspaces in xmonad?

I'm trying to add trayer to my xmonad & xmobar desktop setup.

Here is what I add in .xinitrc before exec xmonad

trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 18 --height 22 --transparent true --tint 0x000000 &

With it I can see it only on first workspace and it's selected by default.

I used to try to ignore it with

          ,[ className =? "Trayer" --> doIgnore]
          ,[ resource  =? "trayer" --> doIgnore]

but it makes no sense, trayer still being selected (I see selection border) on first workspace...

Here is my current xmonad.hs : https://github.com/Heather/xmonad/blob/master/xmonad.hs

xmonad version is 0.11

like image 455
cnd Avatar asked Oct 21 '22 03:10

cnd


1 Answers

It seems like the className for trayer is with a lowercase: "trayer". This should solve the selection issue.

like image 75
Nicolas Dudebout Avatar answered Nov 15 '22 10:11

Nicolas Dudebout