-
Notifications
You must be signed in to change notification settings - Fork 0
/
polybar
151 lines (114 loc) · 2.45 KB
/
polybar
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
[colors]
background = #04040e
background-alt = #2e3133
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[settings]
screenchange-reload = true
[bar/root]
monitor = ${env:MONITOR:eDP1}
height = 25
bottom = false
offset-y = 7
radius = 10.0
override-redirect = true
background = ${colors.background}
foreground = ${colors.foreground}
module-margin-left = 0
module-margin-right = 0
font-0 = JetBrains Mono:pixelsize=10;2
font-1 = FontAwesome:pixelsize=10;2
font-2 = DejaVu Sans:pixelsize=10;2
cursor-click = pointer
cursor-scroll = ns-resize
[bar/workspaces]
inherit = bar/root
width = 261
offset-x = 7
modules-left = workspaces
[bar/battery]
inherit = bar/root
width = 73
offset-x = 100%:-80
modules-center = battery
[module/workspaces]
type = internal/xworkspaces
icon-0 = 1;
icon-1 = 2;
icon-2 = 3;
icon-3 = 4;
icon-4 = 5;
icon-5 = 6;
icon-6 = 7;
icon-7 = 8;
icon-8 = "9; "
enable-scroll = false
label-active = " %icon% "
label-active-background = #00000000
label-occupied = " %icon% "
label-urgent = " %icon% "
label-empty = " %icon% "
[module/battery]
type = internal/battery
format-full = <label-full>
format-charging = <label-charging>
format-discharging = <label-discharging>
label-full = " %percentage%%"
label-charging = " %percentage%%"
label-discharging = " %percentage%%"
[bar/volume]
inherit = bar/root
width = 68
offset-x = 100%:-155
modules-center = volume
[module/volume]
type = internal/alsa
label-volume = %percentage%%
label-muted = %percentage%%
[bar/time]
inherit = bar/root
width = 68
offset-x = 100%:-230
modules-center = time
[module/time]
type = internal/date
time = %H:%M
label = %time%
[bar/date]
inherit = bar/root
width = 68
offset-x = 100%:-305
modules-center = date
[module/date]
type = internal/date
date = %d.%m
label = %date%
# 75
[bar/keyboard]
inherit = bar/root
width = 40
offset-x = 100%:-352
modules-center = keyboard
[module/keyboard]
type = internal/xkeyboard
format = <label-layout>
label-layout = %icon%
layout-icon-0 = ru;RU
layout-icon-1 = us;US
[bar/music]
inherit = bar/root
width = 33%
offset-x = 33%
override-redirect = true
background = #00000000
foreground = ${colors.foreground}
font-0 = JetBrains Mono:style=Bold:pixelsize=10;2
modules-center = cmus
[module/cmus]
type = custom/script
exec = "cmus-remote -C status 2>&1 | grep -P "^tag title" | sed -z -e 's/tag title//' && echo"
click-left = cmus-remote --pause
interval = 0.5