-
Notifications
You must be signed in to change notification settings - Fork 165
/
xmobarrc
77 lines (65 loc) · 2.6 KB
/
xmobarrc
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- xmobar configuration file
--
-- Mess with this file to change the appearance of the contents of the
-- status bar which are not directly controlled by xmonad. You can see your
-- changes immediately by recompiling xmonad using "super-q".
--
-- There's a lot you can do here. Refer to "man xmobar".
--
-- Author: David Brewer
-- Repository: https://github.com/davidbrewer/xmonad-ubuntu-conf
Config {
-- Set font and default foreground/background colors. Note that
-- the height of xmobar is controlled by the font you use.
font = "xft:Ubuntu Mono-18",
bgColor = "black",
fgColor = "grey",
-- Position is top left, taking up 94% of screen.
-- You are likely to have to tweak the width here based on the width
-- of your screen to make it play nicely with stalonetray, which we
-- want to be taking up the remainer of the space on the right side
-- of your screen.
position = TopW L 94,
-- list of commands which gather information about your system for
-- presentation in the bar.
commands = [
-- Gather and format CPU usage information.
-- If it's above 50%, we consider it high usage and make it red.
Run Cpu [
"-H","50",
"--high","red"
] 10,
-- Gather and format memory usage information
Run Memory [
"-t","Mem: <usedratio>%"
] 10,
-- Date formatting
Run Date "%a %b %_d %l:%M" "date" 10,
-- Battery information. This is likely to require some customization
-- based upon your specific hardware. Or, for a desktop you may want
-- to just remove this section entirely.
Run Battery [
"-t", "<acstatus>: <left>%",
"--",
"-O", "AC",
"-o", "Bat",
"-h", "green",
"-l", "red"
] 10,
-- To get volume information, we run a custom bash script.
-- This is because the built-in volume support in xmobar is disabled
-- in Debian and derivatives like Ubuntu.
Run Com "/bin/bash" ["-c", "~/.xmonad/get-volume"] "myvolume" 10,
-- This line tells xmobar to read input from stdin. That's how we
-- get the information that xmonad is sending it for display.
Run StdinReader
],
-- Separator character used to wrape variables in the xmobar template
sepChar = "%",
-- Alignment separater characer used in the xmobar template. Everything
-- before this will be aligned left, everything after aligned right.
alignSep = "}{",
-- Overall template for the layout of the xmobar contents. Note that
-- space is significant and can be used to add padding.
template = "%StdinReader% }{ %battery% | %cpu% | %memory% | Vol: %myvolume% <fc=#e6744c>%date%</fc> "
}