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

include-file = ~/.config/polybar/tengwar_icons.ini

[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]
width = 100%
height = 30
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 = %icon%%name%
label-active-font = 0
type = internal/i3
index-sort = false
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 = ${self.label}
label-focused-background = ${colors.foreground-alt}
label-focused-padding = ${module/bspwm.label-focused-padding}
label-focused-foreground = ${colors.foreground}

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

label-urgent = ${self.label}
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 = ${self.label}
label-visible-background = ${self.label-focused-background}
#label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

strip-wsnumbers = true
fuzzy-match = true


; 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 = " "