forked from colonelpanic/dotfiles
[XMonad] Make WindowBringer text similar to rofi
This commit is contained in:
parent
43b512abb2
commit
c520264f4c
@ -1,5 +1,6 @@
|
|||||||
import Graphics.X11.ExtraTypes.XF86
|
import Graphics.X11.ExtraTypes.XF86
|
||||||
import System.Taffybar.Hooks.PagerHints (pagerHints)
|
import System.Taffybar.Hooks.PagerHints (pagerHints)
|
||||||
|
import Text.Printf
|
||||||
|
|
||||||
import XMonad hiding ( (|||) )
|
import XMonad hiding ( (|||) )
|
||||||
import XMonad.Actions.CycleWS
|
import XMonad.Actions.CycleWS
|
||||||
@ -23,7 +24,8 @@ import XMonad.Util.NamedWindows (getName)
|
|||||||
|
|
||||||
myDecorateName ws w = do
|
myDecorateName ws w = do
|
||||||
name <- show <$> getName w
|
name <- show <$> getName w
|
||||||
return $ name ++ " [" ++ W.tag ws ++ "]"
|
classHint <- withDisplay $ \d -> io $ getClassHint d w
|
||||||
|
return $ printf "%-2s %-20s%-20s" (W.tag ws) (resClass classHint) name
|
||||||
|
|
||||||
myWindowBringerConfig = WindowBringerConfig { menuCommand = "rofi"
|
myWindowBringerConfig = WindowBringerConfig { menuCommand = "rofi"
|
||||||
, menuArgs = ["-dmenu", "-i"]
|
, menuArgs = ["-dmenu", "-i"]
|
||||||
|
Loading…
Reference in New Issue
Block a user