summaryrefslogtreecommitdiff
path: root/.config/qtile
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-24 15:56:09 +0300
committerThanos Apollo <[email protected]>2024-04-24 15:56:09 +0300
commitfb3f75b5135c4563e6c9fa52f15cd31eacb5acdc (patch)
tree0f674c580de150bfd6592aec371765f1a7640b79 /.config/qtile
parent86075d155af29bd2637716276793d33e365a1008 (diff)
qtile: style
Diffstat (limited to '.config/qtile')
-rw-r--r--.config/qtile/config.py35
1 files changed, 17 insertions, 18 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 8d09e03..8696c6d 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -10,13 +10,12 @@ from libqtile.config import Click, Drag
from colors import monokai,my_colors
hostname = socket.gethostname()
-
groups = []
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ]
group_labels = ["Ⅰ", "Ⅱ", "Ⅲ", "Ⅳ", "Ⅴ", "Ⅵ", "Ⅶ", "Ⅷ", "Ⅸ", "Ⅹ", ]
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall",
- "monadtall", "monadtall", "monadtall", "monadtall",
- "monadtall", "monadtall", ]
+ "monadtall", "monadtall", "monadtall", "monadtall",
+ "monadtall", "monadtall", ]
for i in range(len(group_names)):
groups.append(
@@ -28,10 +27,10 @@ for i in range(len(group_names)):
def init_layout_theme():
"""Layout default theme."""
return {"margin": 5,
- "border_width": 2,
- "border_focus": monokai["yellow"],
- "border_normal": my_colors["black"],
- }
+ "border_width": 2,
+ "border_focus": monokai["yellow"],
+ "border_normal": my_colors["black"],
+ }
@hook.subscribe.startup_once
def autostart():
@@ -51,15 +50,15 @@ layouts = [
def float_my_app(window):
if window.window.get_name() == "thanos/pass-launcher":
window.floating = True
-
+
# Widgets
def init_widgets_defaults():
"""Set widget default settings."""
return dict(font="JetBrains Mono",
- fontsize=14,
- padding=2,
- foreground=monokai["fg"],
- background=my_colors["black"],)
+ fontsize=14,
+ padding=2,
+ foreground=monokai["fg"],
+ background=my_colors["black"],)
widget_defaults = init_widgets_defaults()
@@ -177,9 +176,9 @@ widgets_screen2 = init_widgets_screen2()
def init_screens():
"""Panel settings."""
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=33,
- margin=11),),
- Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=28,
- margin=7))]
+ margin=11),),
+ Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=28,
+ margin=7))]
screens = init_screens()
follow_mouse_focus = True
@@ -242,9 +241,9 @@ keys = [
mouse = [
Drag([mod],"Button1", lazy.window.set_position_floating(),
- start=lazy.window.get_position()),
+ start=lazy.window.get_position()),
Drag([mod],"Button3", lazy.window.set_size_floating(),
- start=lazy.window.get_size()),
+ start=lazy.window.get_size()),
Click([mod],"Button2",
- lazy.window.bring_to_front()),
+ lazy.window.bring_to_front()),
]