Add volume info to xmobar
This commit is contained in:
parent
97c15a1f23
commit
552b92a474
@ -50,9 +50,10 @@ Config { overrideRedirect = True
|
||||
[ "--template" , "\xf017 Uptime: <days>d <hours>h <minutes>m"
|
||||
] 600
|
||||
, Run XPropertyLog "_XMONAD_TRAYPAD"
|
||||
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% | %kbd% { %LZIB% | %date% %_XMONAD_TRAYPAD%"
|
||||
, template = " | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% | %kbd% { %LZIB% | %date% %pactl_volume% %_XMONAD_TRAYPAD%"
|
||||
}
|
||||
|
@ -49,9 +49,10 @@ Config { overrideRedirect = False
|
||||
, Run Uptime
|
||||
[ "--template" , "\xf017 Uptime: <days>d <hours>h <minutes>m"
|
||||
] 600
|
||||
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% | %kbd% { %LZIB% | %date% "
|
||||
, template = " | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% | %kbd% { %LZIB% | %date% %pactl_volume% "
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ myXmobarPP = def
|
||||
formatUnfocused = wrap (surface0 "[") (surface0 "]") . white . ppWindow
|
||||
|
||||
ppWindow :: String -> String
|
||||
ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 30
|
||||
ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 20
|
||||
|
||||
surface0, teal, red, white, yellow :: String -> String
|
||||
teal = xmobarColor "#81c8be" ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user