summaryrefslogtreecommitdiff
path: root/polybar/.config/polybar/config
blob: 425e22591602a5ac85019b76e9e2655ef710a58d (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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[settings]
screenchange-reload = true

[colors]
;background = ${xrdb:background:#060808}
background = #00171a1f
background-alt = ${xrdb:color0:#000}
;foreground = ${xrdb:foreground:#c5c8c6}
foreground = #b7b7b7
foreground-alt = ${xrdb:colorBD:#444}
primary = ${xrdb:color4:#ffb52a}
secondary = ${xrdb:color3:#e60053}
alert = ${xrdb:color1:#bd2c40}

[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 20
;offset-x = 1%
offset-y = 0.5%
radius = 0
fixed-center = false
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 1.5
module-margin-right = 1.5
font-0 = Input Mono:style=medium:size=10:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb
font-1 = JetBrains Mono Nerd Font Mono:style=medium:size=10:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb
font-2 = Noto Sans CJK JP:style=medium:size=10:antialias=true:autohint=true:lcdfilter=lcddefault:rgba=rgb
modules-left = pulseaudio battery date time bt cmus
modules-center = 
modules-right = bspwm
tray-position = right
cursor-click = pointer
cursor-scroll = ns-resize
wm-restack = bspwm

[module/xwindow]
type = internal/xwindow
label = %title:0:20:...%

[module/bspwm]
type = internal/bspwm
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false

; Only show workspaces on the same output as the bar
pin-workspaces = true

ws-icon-0 = term;
ws-icon-1 = web;
ws-icon-2 = music;ﱘ
ws-icon-3 = files;
ws-icon-4 = code;
ws-icon-5 = virt;ﮊ
ws-icon-6 = chat;
ws-icon-7 = game;戮
ws-icon-default = 

label-focused = 
label-focused-foreground = #79ffe1
label-focused-padding = 1
;label-focused-font = 10

label-occupied = 
;label-occupied-foreground = ${xrdb:color15:#85befd}
label-occupied-foreground = #b7b7b7
label-occupied-padding = 1

label-empty = 
label-empty-foreground = #b7b7b7
label-empty-padding = 1

; urgent = Workspace with urgency hint set
label-urgent = 
label-urgent-foreground = ${xrdb:color1:#bd2c40}
label-urgent-padding = 1

; Separator in between workspaces
;label-separator = |

[module/wlan]
type = internal/network
interface = wlo1
interval = 3.0
format-connected = <label-connected>
label-connected =  %essid%
label-font = 1
label-connected-background = ${colors.background}
label-connected-padding = 0
format-disconnected =

[module/eth]
type = internal/network
interface = eno1
interval = 3.0
format-connected-underline = ${xrdb:color11:#55aa55}
;format-connected-prefix = 
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected =  %local_ip% ↑%upspeed% ↓%downspeed%
format-disconnected =

[module/time]
type = internal/date
interval = 1.0
date = %I:%M %p
label = %date%
label-foreground = #EEFFFF
format = time <label>

[module/date]
type = internal/date
date = %a, %d %b
label = %date%
label-foreground = #EEFFFF
format= date <label>

[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
poll-interval = 1
;full-at = 98
label-discharging = %percentage%%
label-discharging-foreground = #EEFFFF
label-charging = %percentage%%
label-charging-foreground = #EEFFFF
label-full = %percentage%%
label-full-foreground = #EEFFFF
format-discharging = bat <label-discharging>
format-full = ^bat <label-full>
format-charging = +bat <label-charging>

[module/pulseaudio]
type = internal/pulseaudio
format-volume = vol <label-volume>
format-muted = vol <label-muted>
label-volume = %percentage%%
label-volume-foreground = #EEFFFF
label-muted = muted
label-muted-foreground = #EEFFFF

[module/cmus]
type = custom/script
exec = ~/.config/polybar/cmus.sh
exec-if = pgrep -x cmus
interval = 1
click-left = cmus-remote --next
click-right = cmus-remote --prev
click-middle = cmus-remote --pause
scroll-up = cmus-remote --volume +5%
scroll-down = cmus-remote --volume -5%
format = <label>
format-foreground = #79ffe1
label = %output%
!label-maxlen = 50

[module/mpd]
type = internal/mpd
label-offline = mpd is offline
format-online = <label-song>  <icon-prev> <toggle> <icon-next> 
format-offline = <label-offline>
host = 127.0.0.1
port = 6600
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 40
label-song-ellipsis = true
label-song-foreground = #7b8c58
bar-progress-width = 10
bar-progress-indicator = |
bar-progress-fill = ─
bar-progress-empty = ─

[module/bt]
type = custom/script
exec = ~/.config/polybar/bt.sh
tail = true
click-left = ~/.config/polybar/bt.sh --toggle &
format = tooth <label>
label = %output%
label-foreground = #EEFFFF