diff options
Diffstat (limited to '.config/qtile/defaults.py')
-rw-r--r-- | .config/qtile/defaults.py | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/.config/qtile/defaults.py b/.config/qtile/defaults.py new file mode 100644 index 0000000..7d13cc6 --- /dev/null +++ b/.config/qtile/defaults.py @@ -0,0 +1,102 @@ +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 + +floating_layout = layout.Floating( + border_width=default_border_width, + border_normal=colors[0][4], + border_focus=colors[0][5], + float_rules = [ + *layout.Floating.default_float_rules, + *[Match(wm_class=x) for x in center_floating_windows_by_class], + ], +) + +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, +] + +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") + ] +} |