aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qtile/defaults.py
diff options
context:
space:
mode:
Diffstat (limited to '.config/qtile/defaults.py')
-rw-r--r--.config/qtile/defaults.py98
1 files changed, 98 insertions, 0 deletions
diff --git a/.config/qtile/defaults.py b/.config/qtile/defaults.py
new file mode 100644
index 0000000..a4cb388
--- /dev/null
+++ b/.config/qtile/defaults.py
@@ -0,0 +1,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")
+ ]
+}