From fb3f75b5135c4563e6c9fa52f15cd31eacb5acdc Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 24 Apr 2024 15:56:09 +0300 Subject: qtile: style --- .config/qtile/config.py | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to '.config/qtile/config.py') 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()), ] -- cgit v1.2.3