forked from LBCrion/sfwbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht2.config
More file actions
422 lines (351 loc) · 8.18 KB
/
Copy patht2.config
File metadata and controls
422 lines (351 loc) · 8.18 KB
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
#Api2
# Override gtk theme
#Theme = "Adwaita-dark"
# Override gtk icon theme
#IconTheme = "Adwaita"
# Set default icon search path
Set ImagePath = "icons/misc"
# Set a hint for bar thickness (CSS should use this is calculate sizes).
Set ThicknessHint = "20px"
# Display minimized windows on taskbars across all outputs
# DisownMinimized = true
TriggerAction "SIGRTMIN+1", SwitcherEvent("forward");
TriggerAction "SIGRTMIN+2", SwitcherEvent("back");
# Window Placer
placer {
xorigin = 5 # place the first window at X% from the left
yorigin = 5 # place the first window at X% from the top
xstep = 5 # step by X% of desktop horizontally
ystep = 5 # step by X% of desktop vertically
children = true
}
# Task Switcher
switcher {
interval = 700
icons = true
labels = false
cols = 5
}
function("SfwbarInit") {
# Config "PopUp 'XVolumeWindow' { AutoClose = true }"
}
include("winops.widget")
# Panel layout
layout {
mirror = "*"
layer = "top"
bar_id = "bar-0"
# sensor = 300
# monitor = "eDP-1"
include("startmenu.widget")
button {
style = "launcher"
value = GetTerm();
action = ExecTerm();
}
button {
style = "launcher"
value = "firefox"
action = Exec("firefox");
}
# Uncomment the below section if you would like a pager
# pager {
# style = "pager"
# rows = 1
# preview = true
# }
taskbar {
rows = 1
css = "* { -GtkWidget-hexpand: true; -FlowGrid-column-homogeneous: true; }" # stretch horizontally
labels = false;
group = pager; # remove this line if you don't want a multi-desktop taskbar
group.icons = true;
group.labels = true;
sort = true;
action[RightClick] = Menu("winops");
action[MiddleClick] = Close();
action[Drag] = Focus();
}
include("cpu.widget")
include("memory.widget")
tray {
rows = 1
css = "grid { -GtkWidget-column-homogeneous: false; }"
}
widget "battery.widget" {
# specify a battery device name or leave out to autodetect
device = 'BAT0';
simple_icon = False;
}
widget "idleinhibit.widget" {
icon_active = "icons/misc/lock-symbolic";
icon_inactive = "icons/misc/unlock-symbolic";
}
# widget "rfkill-wifi.widget"
# widget "rfkill-bt.widget"
widget "upower.widget"
widget "backlight.widget" {
step = 5;
max_brightness = 100;
min_brightness = 30;
}
widget "mpd.widget" {
icon_play = "media-playback-start";
icon_stop = "media-playback-stop";
icon_pause = "media-playback-pause";
icon_ffwd = "media-seek-forward";
icon_back = "media-seek-backward";
icon_repeat = "media-playlist-repeat";
icon_shuffle = "media-playlist-shuffle";
icon_browse = "view-list";
}
widget "volume.widget" {
# if simple_icon is false, the widget will render a circular gauge icon with
# a device form indicator.
simple_icon = False;
volume_thresholds = [80, 50, 0];
volume_icons = ["audio-volume-high", "audio-volume-medium", "audio-volume-low"];
volume_muted = "audio-volume-muted";
}
widget "bluez.widget" {
scan_timeout = 20;
}
widget "network.widget"
widget "ncenter.widget" {
# notification center is disabled by default to avoid conflict with other
# desktop notification handlers.
disable = true;
}
widget "privacy.widget" {
audio_icon = "audio-input-microphone";
video_icon = "camera-web";
}
widget "language.widget"
widget "session.widget" {
# actions are specified as an array of ["icon", "title", "command"]
session_actions = [
["hibernate", "Hibernate", "systemctl hibernate"],
["suspend", "Suspend", "systemctl suspend"],
["system-lock-screen", "Lock", "loginctl lock-session"],
["system-log-out", "Logout", "loginctl terminate-user $USER"],
["system-reboot", "Reboot", "systemctl reboot"],
["system-shutdown", "Shutdown", "systemctl poweroff"]
];
}
widget "clock.widget" {
disable = false;
time_format = "%H:%M"
tooltip_format = "%H:%M\n%x"
week_starts_on_sunday = false
reset_on_popup = false
}
}
#CSS
@define-color theme_text_color white;
@define-color theme_bg_color black;
@define-color theme_fg_color white;
@define-color borders rgba(256,256,256,0.3);
#hidden {
-GtkWidget-visible: false;
}
window#sfwbar {
-GtkWidget-direction: top;
background-color: rgba(0,0,0,0.6);
}
grid {
padding: 0px;
margin: 0px;
}
label {
font-family: Sans;
font-size: calc(@bar_thickness * 0.7);
color: @theme_text_color;
text-shadow: none;
}
* {
-GtkWidget-vexpand: true;
}
tooltip {
background-color: @theme_bg_color;
}
image {
min-width: 16px;
min-height: 16px;
box-shadow: none;
border: none;
border-image: none;
background-image: none;
background: none;
color: @theme_fg_color;
-gtk-icon-shadow: none;
}
button {
box-shadow: none;
border-image: none;
background-image: none;
background: none;
outline-style: none;
}
menu {
background-color: black;
border: 1px solid @borders;
padding: 3px;
}
menu arrow {
background-color: rgba(0,0,0,0);
color: @theme_text_color;
}
menuitem {
color: @theme_text_color;
padding: 2px;
}
menu image {
padding-right: 5px;
}
progressbar trough {
background-color: rgba(256, 256, 256, 0.5);
border-color: rgba(256,256,256,0.5);
}
/* taskbar CSS properties */
grid#taskbar_pager {
padding-right: 3px;
padding-left: 3px;
border-radius: 4px;
border: solid rgba(119,119,119,0.3) 1px;
}
button#taskbar_item image {
min-width: 16px;
min-height: 16px;
}
button#taskbar_item label {
padding: 0px 0px 0px 5px;
-GtkWidget-hexpand: false;
}
button#taskbar_item {
padding: 0px 5px 0px 5px;
border-radius: 4px;
background-color: rgba(119,119,119,0.2);
border-color: rgba(119,119,119,0.3);
-GtkWidget-hexpand: false;
}
button#taskbar_item.focused {
background-color: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.4);
}
button#taskbar_item:hover {
background-color: rgba(176,176,176,0.22);
border-color: rgba(234,234,234,0.44);
}
grid#taskbar_pager button,
button#pager {
padding: 0px 5px 0px 5px;
border-radius: 4px;
border-color: rgba(119,119,119,0);
}
button#pager_preview {
border-radius: 0;
border-color: #000000;
border-width: 0.25mm;
color: #777777;
min-width: 5cm;
min-height: 2.8125cm;
}
/* switcher CSS properties */
window#switcher {
background-color: rgba(0,0,0,0);
padding: 6px;
-GtkWidget-hexpand: true;
}
grid#switcher {
border-radius: 6px;
background-color: @theme_bg_color;
border: 1px solid @borders;
padding: 6px;
box-shadow: none;
-GtkWidget-hexpand: true;
}
grid#switcher_item.focused image,
grid#switcher_item.focused {
border-image: none;
background-color: #777777;
border: 0px;
box-shadow: none;
border-radius: 1.25mm;
}
grid#switcher_item image,
grid#switcher_item {
min-width: 60px;
min-height: 60px;
padding: 6px;
-GtkWidget-hexpand: true;
}
/* tray CSS configuration */
button#tray_item {
padding: 0px 1px 0px 0px;
border: none;
margin: 0px;
-GtkWidget-valign: center;
}
button#tray_item.passive {
-GtkWidget-visible: false;
}
.module image,
button#startmenu image,
button#module image{
padding: 0px;
margin: 0px;
min-width: calc(@bar_thickness * 0.8);
min-height: calc(@bar_thickness * 0.8);
-GtkWidget-valign: center;
-GtkWidget-vexpand: true;
color: @theme_fg_color;
-ScaleImage-color: @theme_text_color;
-ScaleImage-symbolic: true;
}
.module,
button#module,
button#launcher,
button#showdesktop,
button#startmenu {
border: none;
padding: calc(@bar_thickness * 0.1);
margin: 0px;
-GtkWidget-vexpand: true;
-GtkWidget-valign: center;
}
button#startmenu {
border: 1px solid;
border-radius: 4px;
}
chart#cpu {
background: rgba(127,127,127,0.3);
min-width: 9px;
margin: 2px;
border: 1px solid @borders;
color: red;
}
progressbar#memory {
-GtkWidget-direction: top;
min-width: 9px;
border: 1px solid @borders;
margin: 2px;
}
progressbar#memory trough {
min-height: 2px;
min-width: 9px;
border: none;
border-radius: 0px;
background: rgba(127,127,127,0.3);
}
progressbar#memory progress {
-GtkWidget-hexpand: true;
min-width: 9px;
border-radius: 0px;
border: none;
margin: 0px;
background-color: alpha(green,0.9);
}
label#language {
margin-left: 3px;
margin-right: 5px;
}