summaryrefslogtreecommitdiff
path: root/config.ini
blob: f9a7140be591c3a8f536703aa3b47e8f3b6a3d01 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
;; ~/.config/polybar/config.ini
[colors]
bg         = #111111
bg-alt     = #1c1c1c
fg         = #e8e8e8
fg-dim     = #b0b0b0
accent     = #285577
urgent     = #cc4444
[bar/main]
monitor              =
width                = 100%
height               = 22
offset-x             = 0
offset-y             = 0
bottom               = true
background           = ${colors.bg}
foreground           = ${colors.fg}
padding-left         = 0
padding-right        = 0
module-margin-left   = 0
module-margin-right  = 0
font-0 = "Fira Nerd Font:pixelsize=11:antialias=true;3"
modules-left   = xmonad
modules-center =
modules-right  = cpu memory volume battery date time
tray-position        = right
tray-padding         = 6
tray-background      = ${colors.bg}
tray-maxsize         = 14
cursor-default = default
cursor-click   = default
cursor-scroll  = default
[module/xmonad]
type           = custom/script
exec           = tail -F /tmp/xmonad-log 2>/dev/null
tail           = true
format-padding = 1
[module/cpu]
type                 = internal/cpu
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = CPU %percentage%%
label-foreground     = ${colors.fg-dim}
[module/memory]
type                 = internal/memory
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = MEM %used%
label-foreground     = ${colors.fg-dim}
[module/volume]
type                 = custom/script
exec                 = pamixer --get-volume-human 2>/dev/null || echo --
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = VOL %output%
label-foreground     = ${colors.fg-dim}
[module/battery]
type                 = custom/script
exec                 = now=$(cat /sys/class/power_supply/BAT0/charge_now); full=$(cat /sys/class/power_supply/BAT0/charge_full); status=$(cat /sys/class/power_supply/BAT0/status); pct=$((now * 100 / full)); suffix=""; [ "$status" = "Charging" ] && suffix=" ↑"; [ "$pct" -ge 98 ] && echo "BAT FULL" || echo "BAT ${pct}%${suffix}"
interval             = 30
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label-foreground     = ${colors.fg-dim}
[module/date]
type                 = internal/date
interval             = 10
date                 = %a %d %b
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = %date%
label-foreground     = ${colors.fg-dim}
[module/time]
type                 = internal/date
interval             = 10
date                 = %H:%M
format               = <label>
format-background    = ${colors.accent}
format-padding       = 2
format-margin-left   = 2
label                = %date%
label-foreground     = #ffffff