aboutsummaryrefslogtreecommitdiff
path: root/polybar/.config/polybar/config
blob: 6eb86f0fe86a978fda796d1b8b0b374783bb5a51 (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
;=====================================================
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;
;=====================================================

[colors]
#pseudo-transparency = true
#background     = #fffffff
#background-alt = #fffffff
background     = #d8dee9
background-alt = #d8dee9
foreground = ${xrdb:color7}
#foreground-alt = ${xrdb:color3}
foreground-alt = #4A3131
primary = #ffb52a
secondary = #e60053
alert = ${xrdb:color1}

[global/wm]
margin-top = 0
margin-bottom = 0


[bar/i3]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 30
#offset-x = 0
offset-y = 0

; Prefer fixed center position for the `modules-center` block
; When false, the center position will be based on the size of the other blocks.
fixed-center = true

background = ${colors.background}
foreground = ${colors.foreground-alt}

overline-size = 2
overline-color = #f00
underline-size = 2
underline-color = #00f

border-bottom-size = 0
border-bottom-color = #333

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

font-0 = Dejavu Sans Mono:size=12
font-1 = materialdesignicons:size=16

#modules-left = i3
modules-center = i3
modules-right = date

tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff

;wm-restack = bspwm
;wm-restack = i3

;override-redirect = true

scroll-up = "#i3.prev"
scroll-down = "#i3.next"

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

[module/bspwm]
type = internal/bspwm
ws-icon-default = x

label-focused = %index%
label-focused-underline= ${colors.primary}
label-focused-padding = 2

label-occupied = %index%
label-occupied-padding = 2

label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2

label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2

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

label-mode = %mode%
label-mode-padding = 2
#label-mode-foreground = #000000
#label-mode-background = ${colors.primary}

#border-size = 1
#border-colol = #000

#label-focused = %name%
label-focused = %name%%icon%
label-focused-background = ${colors.foreground-alt}
label-focused-padding = ${module/bspwm.label-focused-padding}
label-focused-foreground = ${colors.foreground}

label-unfocused = %name%%icon%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-unfocused-background = ${colors.background-alt}
label-unfocused-foreground = ${colors.foreground-alt}

label-urgent = %name%%icon%
label-urgent-background = ${colors.background}
label-urgent-foreground = ${module/bspwm.label-urgent-background}
label-urgent-underline = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}

label-visible = %name%%icon%
label-visible-background = ${self.label-focused-background}
#label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

strip-wsnumbers = true

# All the characters comes from materialdesignicons.
ws-icon-0  = 0;0
ws-icon-1  = 1:;
ws-icon-2  = 2:;
ws-icon-3  = 3:;
ws-icon-4  = 4:;
ws-icon-5  = 5:;
ws-icon-6  = 6:;
ws-icon-7  = 7:;
ws-icon-8  = 8:;
ws-icon-9  = 9:;
ws-icon-10 = 10:;
ws-icon-11 = 11:;
ws-icon-12 = 12:;
ws-icon-13 = 50:;︹
ws-icon-14 = 51:;
ws-icon-15 = 98:;
ws-icon-16 = 99:;
ws-icon-17 = 100:;
ws-icon-18 = 101:;
ws-icon-19 = 102:;
;ws-icon-default = 

; Separator in between workspaces
#label-separator = " "
#label-separator-padding = 0
#label-separator-foreground = #ffb52a

[module/date]
type = custom/script
exec = ~/scripts/polybar/date.sh
tail = true
click-left = ~/scripts/polybar/cal.sh
#click-left = kill -USR1 %pid%
format-prefix = " "
#type = internal/date
#interval = 30
#
#date =
#date-alt = " %Y-%m-%d"
#
#time = " %H:%M"
#time-alt =  %d %b %H:%M
#
#format-prefix =
#format-foreground = ${colors.foreground-alt}
##format-underline = #0a6cf5
#
##label = %date% %time%
#label = %time%

; vim:ft=dosini