summaryrefslogtreecommitdiff
path: root/polybar/config.ini~
blob: 18dfcaa69aa07777c00f44e249efbf2e850f937a (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[colors]
bg      = #282828
bg1     = #3c3836
bg2     = #504945
bg3     = #665c54
bg4     = #7c6f64
fg      = #ebdbb2
fg1     = #d5c4a1
fg2     = #bdae93
red     = #cc241d
green   = #98971a
yellow  = #d79921
orange  = #d65d0e
purple  = #b16286
aqua    = #689d6a
gray    = #928374

[bar/main]
width             = 100%
height            = 28
monitor           = ${env:MONITOR:}
background        = ${colors.bg}
foreground        = ${colors.fg}

line-size         = 2
line-color        = ${colors.yellow}

padding-left      = 1
padding-right     = 2
module-margin     = 1

font-0 = "FiraCode Nerd Font:style=Regular:size=11;3"
font-1 = "FiraCode Nerd Font:style=Bold:size=11;3"

modules-left   = i3
modules-center = date
modules-right  = xkeyboard cpu memory filesystem

separator = "│"
separator-foreground = ${colors.bg3}

cursor-click  = pointer
cursor-scroll = ns-resize

enable-ipc = true


;; ── i3 ─────────────────────────────────────────

[module/i3]
type = internal/i3
index-sort = true

format = <label-state>

label-focused = %index%
label-focused-foreground = ${colors.bg}
label-focused-background = ${colors.yellow}
label-focused-padding = 2

label-unfocused = %index%
label-unfocused-foreground = ${colors.fg2}
label-unfocused-padding = 2

label-visible = %index%
label-visible-foreground = ${colors.fg1}
label-visible-padding = 2

label-urgent = %index%
label-urgent-background = ${colors.red}
label-urgent-foreground = ${colors.bg}
label-urgent-padding = 2


;; ── Date ───────────────────────────────────────

[module/date]
type     = internal/date
interval = 5

date = %a %d %b
time = %H:%M

format-prefix = "time "
format-prefix-foreground = ${colors.aqua}

label = %date% %time%


;; ── PipeWire (via PulseAudio API) ─────────────

[module/pulseaudio]
type = internal/pulseaudio

use-ui-max = true
interval   = 2

format-volume = <ramp-volume> <label-volume>
format-muted  = <label-muted>

label-volume = %percentage%%
label-muted  = muted

label-muted-foreground = ${colors.gray}

ramp-volume-0 = vol-low
ramp-volume-1 = vol-mid
ramp-volume-2 = vol-high
ramp-volume-foreground = ${colors.green}

click-right = pavucontrol


;; ── Keyboard ──────────────────────────────────


[module/xkeyboard]
type = internal/xkeyboard

blacklist-0 = num lock
blacklist-1 = scroll lock

format-prefix = "kbd "
format-prefix-foreground = ${colors.purple}

label-layout = %layout%

click-left = /usr/bin/env bash ~/.config/polybar/scripts/kb-switch.sh

;; ── CPU ───────────────────────────────────────

[module/cpu]
type     = internal/cpu
interval = 2

format-prefix = "cpu "
format-prefix-foreground = ${colors.orange}

label = %percentage%%


;; ── Memory ────────────────────────────────────

[module/memory]
type     = internal/memory
interval = 3

format-prefix = "ram "
format-prefix-foreground = ${colors.purple}

label = %percentage_used%%


;; ── Filesystem ────────────────────────────────

[module/filesystem]
type     = internal/fs
interval = 30

mount-0 = /

format-mounted-prefix = "disk "
format-mounted-prefix-foreground = ${colors.aqua}

label-mounted = %percentage_used%%
label-unmounted = down
label-unmounted-foreground = ${colors.red}