-
Notifications
You must be signed in to change notification settings - Fork 161
/
xmobar-single.hs
39 lines (38 loc) · 1.86 KB
/
xmobar-single.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- xmobar config used by Vic Fryzel
-- Author: Vic Fryzel
-- https://github.com/vicfryzel/xmonad-config
-- This xmobar config is for a single 4k display (3840x2160) and meant to be
-- used with the stalonetrayrc-single config.
--
-- If you're using a single display with a different resolution, adjust the
-- position argument below using the given calculation.
Config {
-- Position xmobar along the top, with a stalonetray in the top right.
-- Add right padding to xmobar to ensure stalonetray and xmobar don't
-- overlap. stalonetrayrc-single is configured for 12 icons, each 23px
-- wide.
-- right_padding = num_icons * icon_size
-- right_padding = 12 * 23 = 276
-- Example: position = TopP 0 276
position = TopP 0 276,
font = "xft:monospace-8",
bgColor = "#000000",
fgColor = "#ffffff",
lowerOnStart = False,
overrideRedirect = False,
allDesktops = True,
persistent = True,
commands = [
Run Weather "KPAO" ["-t","<tempF>F <skyCondition>","-L","64","-H","77","-n","#CEFFAC","-h","#FFB6B0","-l","#96CBFE"] 36000,
Run MultiCpu ["-t","Cpu: <total0> <total1> <total2> <total3>","-L","30","-H","60","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC","-w","3"] 10,
Run Memory ["-t","Mem: <usedratio>%","-H","8192","-L","4096","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Swap ["-t","Swap: <usedratio>%","-H","1024","-L","512","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Network "eth0" ["-t","Net: <rx>, <tx>","-H","200","-L","10","-h","#FFB6B0","-l","#CEFFAC","-n","#FFFFCC"] 10,
Run Date "%a %b %_d %l:%M" "date" 10,
Run Com "getMasterVolume" [] "volumelevel" 10,
Run StdinReader
],
sepChar = "%",
alignSep = "}{",
template = "%StdinReader% }{ %multicpu% %memory% %swap% %eth0% Vol: <fc=#b2b2ff>%volumelevel%</fc> <fc=#FFFFCC>%date%</fc>"
}