blob: 14c4852991412a57c26210feb7cc45cc666b68f2 (
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
|
# Compatiable with environmental color variables, fallback theme is set to be gruvbox
[colors]
background_inactive = ${env:XDG_COLOR_INACTIVE_FOREGROUND:#a89984}
background = ${env:XDG_COLOR_BACKGROUND:#282828}
foreground = ${env:XDG_COLOR_FOREGROUND:#ebdbb2}
warning = ${env:XDG_COLOR_WARNING:#cc241d}
non_warning = ${env:XDG_COLOR_NON_WARNING:#458588}
interactive = ${env:XDG_COLOR_INTERACTIVE:#98971a}
[bar/example]
width = 100%
height = 19
; Change if using another window manager
wm-restack = bspwm
; Align modules fixed to middle
fixed-center = true
; Colors
background = ${colors.background}
foreground = ${colors.foreground}
; Underline
line-size = 2
line-color = ${colors.foreground}
; Border
border-size = 1
border-color = ${colors.background}
; Padding
padding-left = 4
padding-right = 4
; Margin of modules
module-margin-left = 2
module-margin-right = 2
; Font
font-0 = "Roboto:size=11;3"
; Modlues
; add "date" for clock
; beggining of modules-left is recommended for date module
modules-left = pulseaudio backlight
modules-center = bspwm
modules-right = battery cpu memory
; Cursor actions
cursor-click = pointer
cursor-scroll = ns-resize
font-2 = "Noto Sans:size=11;1"
[module/xworkspaces]
type = internal/xworkspaces
label = %title:0:60:...%
label-active-padding = 2
label-urgent-padding = 2
label-empty-padding = 2
label-occupied-padding=2
label-urgent-foreground = ${colors.background_inactive}
label-occupied-foreground = ${colors.background_inactive}
label-active-font = 1
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
label-focused = %index%
label-focused-padding = 2
label-occupied = %index%
label-occupied-foreground = ${colors.background_inactive}
label-occupied-padding = 2
label-urgent = %index%
label-urgent-foreground = ${colors.warning}
label-urgent-padding = 2
label-empty =
[module/battery]
type=internal/battery
full-at=99
low-at=15
battery=BAT0
adapter=ADP1
poll-interval=5
format-discharging=Battery: <label-discharging>
label-discharging=%percentage%%
format-charging=Charging: <label-charging>
label-charging=%percentage%%
format-discharging-foreground=${colors.background_inactive}
label-discharging-foreground=${colors.foreground}
[module/backlight]
type = internal/backlight
card = intel_backlight
use-actual-brightness = true
enable-scroll = true
format = Brightness: <label>
label=%percentage%%
format-foreground=${colors.background_inactive}
label-foreground=${colors.foreground}
[module/date]
type = internal/date
interval = 1.0
date=%Y-%m-%d%
time=%H:%M
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
format=<label>
label=%time%
format-foreground=${colors.non_warning}
[module/cpu]
type = internal/cpu
interval = 0.5
warn-percentage = 95
format= cpu: <label>
label=%percentage%%
format-foreground=${colors.background_inactive}
label-foreground=${colors.foreground}
[module/memory]
type = internal/memory
interval = 3
warn-percentage = 95
format=ram: <label>
label=%gb_used%
format-foreground=${colors.background_inactive}
label-foreground=${colors.foreground}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "VOL "
format-volume = <label-volume>
label-muted = VOL %percentage%%
label-volume = %percentage%%
label-muted-foreground = ${colors.background_inactive}
format-volume-prefix-foreground = ${colors.background_inactive}
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %essid%
label-connected-foreground = ${colors.interactive}
[module/eth]
inherit = network-base
interface-type = wired
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
[module/wired-network]
type = internal/network
interface = enp2s0
|