aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qtile/defaults.py
blob: a4cb3884d27174fbd12df10a4be9bb37fe8619bf (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
from libqtile import layout
from libqtile.config import Group, Match

from qtile_extras.widget.decorations import PowerLineDecoration

mod = "mod4"
_mod = "mod1"

colors = [
    ["#14161b", "#a272a4", # tiled border (in/active)
     "#14161b", "#cd69d1", # stack border (in/active)
     "#14161b", "#cd69d1"] # 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 "󰮫󰈹󰣀"]

layouts = [
    layout.Columns(
        insert_position=1,
        border_width=3,
        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 = layout.Floating(
    float_rules=[
        # Run the utility of `xprop` to see the wm class and name of an X client.
        #*layout.Floating.default_float_rules,
        Match(wm_class="confirmreset"),  # gitk
        Match(wm_class="makebranch"),  # gitk
        Match(wm_class="maketag"),  # gitk
        Match(wm_class="ssh-askpass"),  # ssh-askpass
        Match(title="branchdialog"),  # gitk
        Match(title="pinentry"),  # GPG key password entry
    ]
)

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")
    ]
}