-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbar2.py
98 lines (78 loc) · 2.42 KB
/
bar2.py
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
from libqtile.bar import Bar
from libqtile.widget.groupbox import GroupBox
from libqtile.widget.currentlayout import CurrentLayout
from libqtile.widget.window_count import WindowCount
from libqtile.widget.windowname import WindowName
from libqtile.widget.cpu import CPU
from libqtile.widget.memory import Memory
from libqtile.widget.net import Net
from libqtile.widget.systray import Systray
from libqtile.widget.clock import Clock
from libqtile.widget.spacer import Spacer
from colors import gruvbox
from unicodes import left_half_circle, right_half_circle
bar = Bar([
left_half_circle(gruvbox['yellow']),
CurrentLayout(
background=gruvbox['yellow'],
),
right_half_circle(gruvbox['yellow']),
Spacer(length=10),
left_half_circle(gruvbox['dark-blue']),
WindowCount(
text_format='缾 {num}',
background=gruvbox['dark-blue'],
show_zero=True
),
right_half_circle(gruvbox['dark-blue']),
Spacer(length=10),
left_half_circle(gruvbox['cyan']),
Clock(
background=gruvbox['cyan'],
format=' %Y-%m-%d %a %I:%M %p'),
right_half_circle(gruvbox['cyan']),
Spacer(length=10),
# Prompt(foreground=gruvbox['fg']),
WindowName(foreground=gruvbox['fg']),
Spacer(length=100),
left_half_circle(gruvbox['bg']),
GroupBox(
disable_drag=True,
active=gruvbox['gray'],
inactive=gruvbox['dark-gray'],
highlight_method='line',
block_highlight_text_color=gruvbox['magenta'],
borderwidth=0,
highlight_color=gruvbox['bg'],
background=gruvbox['bg']
),
right_half_circle(gruvbox['bg']),
Spacer(length=100),
Systray(
padding=15,
# background='#00000000'
),
Spacer(length=10),
left_half_circle(gruvbox['dark-cyan']),
CPU(
format=' {freq_current}GHz {load_percent}%',
background=gruvbox['dark-cyan']),
right_half_circle(gruvbox['dark-cyan']),
Spacer(length=10),
left_half_circle(gruvbox['dark-magenta']),
Memory(
format=' {MemUsed: .0f}{mm}/{MemTotal: .0f}{mm}',
background=gruvbox['dark-magenta']),
right_half_circle(gruvbox['dark-magenta']),
Spacer(length=10),
left_half_circle(gruvbox['dark-blue']),
Net(
background=gruvbox['dark-blue']
),
right_half_circle(gruvbox['dark-blue'])
],
margin=[10, 10, 5, 10],
background='#00000000',
opacity=1,
size=25,
)