[英]How to setup trayer to be on all workspaces in xmonad?
I'm trying to add trayer to my xmonad & xmobar desktop setup. 我正在尝试在我的xmonad和xmobar桌面设置中添加出纸器。
Here is what I add in .xinitrc
before exec xmonad
这是我在exec xmonad
之前在.xinitrc
添加的内容
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.hs
: https : //github.com/Heather/xmonad/blob/master/xmonad.hs
xmonad version is 0.11 xmonad版本是0.11
It seems like the className for trayer is with a lowercase: "trayer". 似乎出纸器的className是小写的:“ trayer”。 This should solve the selection issue. 这应该解决选择问题。
The easy-cheesy way to do this is to use manageDocks . 简便易行的方法是使用manageDocks 。 It will work for trayer, xmobar, and many other things, too. 它也适用于出纸器,xmobar和许多其他东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.