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
|
from libqtile import layout
from libqtile.config import Group, Match
from qtile_extras.widget.decorations import PowerLineDecoration
mod = "mod4"
_mod = "mod1"
colors = [
["#1e1e2e", "#cba6f7", # tiled border (in/active)
"#313244", "#a6e3a1", # stack border (in/active)
"#585b70", "#f38ba8"] # floating border (in/active)
# [bg, fg]
, ["#1e1e2e", "#cdd6f4"] # bar color
, [None, "#6c7086"] # empty group
, [None, "#cdd6f4"] # non empty group
, ["#f38ba8", "#f2cdcd"] # urgent group
, ["#cba6f7", "#cdd6f4"] # active group (active monitor)
, ["#a6e3a1", "#a6e3a1"] # active group (inactive monitor)
, ["#94e2d5", "#11111b"] # layout indicator
, ["#f38ba8", "#11111b"] # caps lock indicator
, ["#eba0ac", "#11111b"] # num lock indicator
, ["#f5e0dc", "#11111b"] # window count
, ["#24273a", "#cdd6f4"] # window name
, ["#b4befe", "#11111b"] # mem usage
, ["#74c7ec", "#11111b"] # cpu usage
, ["#f38ba8", "#11111b"] # cpu temp
, ["#a6e3a1", "#11111b"] # volume
, ["#89b4fa", "#11111b"] # backlight
, ["#fab387", "#11111b"] # battery (plugged in)
, ["#f38ba8", "#11111b"] # battery (discharging)
, ["#f38ba8", "#11111b"] # battery (low)
, ["#f5c2e7", "#11111b"] # date
, ["#cba6f7", "#11111b"] # time
]
groups = [Group(i) for i in "一二三四五六七八九十"]
# groups = [Group(i) for i in ""]
center_floating_windows_by_class = [
"arandr", "blueman-manager", "pavucontrol"
]
default_border_width=3
layouts = [
layout.Columns(
insert_position=1,
border_width=default_border_width,
align=layout.Columns._left,
margin=[4, 4, 4, 4],
margin_on_single=[0, 0, 0, 0],
border_normal=colors[0][0],
border_focus=colors[0][1],
border_normal_stack=colors[0][2],
border_focus_stack=colors[0][3],
),
layout.Max(),
layout.Matrix(),
layout.MonadWide(),
layout.VerticalTile(),
floating_layout,
]
floating_layout = layout.Floating(
border_width=default_border_width,
border_normal=colors[0][4],
border_focus=colors[0][5],
float_rules = [
*[Match(wm_class=x) for x in center_floating_windows_by_class],
],
)
widget_defaults = dict(
font = "NotoSans NF:style=Regular",
fontsize = 14,
padding = 3,
)
extension_defaults = widget_defaults.copy()
powerline_0 = {
"decorations": [
PowerLineDecoration(path="forward_slash")
]
}
powerline_1 = {
"decorations": [
PowerLineDecoration(path="arrow_left")
]
}
powerline_2 = {
"decorations": [
PowerLineDecoration(path="arrow_right")
]
}
|