From d862e8ab7b87c291ad20d5867cc5d73a42f1c24c Mon Sep 17 00:00:00 2001 From: Darkkal44 Date: Sun, 23 Apr 2023 12:45:59 +0530 Subject: [PATCH] Oraginzing Qtile config file --- .config/qtile/config.py | 46 ++++++++++--------- Themes/Cozy/.config/qtile/config.py | 53 ++++++++++++---------- Themes/Everforest/.config/qtile/config.py | 48 +++++++++++--------- Themes/Natura/.config/qtile/config.py | 52 +++++++++++++--------- Themes/Sakura/.config/qtile/config.py | 54 +++++++++++++---------- 5 files changed, 144 insertions(+), 109 deletions(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index a560b67..73251cd 100755 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -221,8 +221,8 @@ screens = [ widget.Spacer( - length=8, - background='#353446', + length=8, + background='#353446', ), @@ -238,10 +238,11 @@ screens = [ widget.CurrentLayout( - background='#353446', - foreground='#CAA9E0', - fmt='{}', - font="JetBrains Mono Bold", + background='#353446', + foreground='#CAA9E0', + fmt='{}', + font="JetBrains Mono Bold", + fontsize=13, ), @@ -261,6 +262,7 @@ screens = [ fmt='Search', background='#282738', font="JetBrains Mono Bold", + fontsize=13, foreground='#CAA9E0', mouse_callbacks={"Button1": search}, ), @@ -333,17 +335,18 @@ screens = [ widget.Spacer( - length=-7, - background='#353446', + length=-7, + background='#353446', ), widget.Memory( - background='#353446', - format='{MemUsed: .0f}{mm}', - foreground='#CAA9E0', - font="JetBrains Mono Bold", - update_interval=5, + background='#353446', + format='{MemUsed: .0f}{mm}', + foreground='#CAA9E0', + font="JetBrains Mono Bold", + fontsize=13, + update_interval=5, ), @@ -372,10 +375,10 @@ screens = [ widget.Battery( - font='JetBrains Mono Bold', - background='#353446', - foreground='#CAA9E0', - format='{percent:2.0%}', + font='JetBrains Mono Bold', + background='#353446', + foreground='#CAA9E0', + format='{percent:2.0%}', ), @@ -408,7 +411,7 @@ screens = [ font='JetBrainsMono Nerd Font', theme_path='~/.config/qtile/Assets/Volume/', emoji=True, - fontsize=12, + fontsize=13, background='#353446', ), @@ -420,9 +423,9 @@ screens = [ widget.Volume( - font='JetBrains Mono Bold', - background='#353446', - foreground='#CAA9E0', + font='JetBrains Mono Bold', + background='#353446', + foreground='#CAA9E0', ), @@ -445,6 +448,7 @@ screens = [ background='#282738', foreground='#CAA9E0', font="JetBrains Mono Bold", + fontsize=13, ), diff --git a/Themes/Cozy/.config/qtile/config.py b/Themes/Cozy/.config/qtile/config.py index 769cbbb..73251cd 100755 --- a/Themes/Cozy/.config/qtile/config.py +++ b/Themes/Cozy/.config/qtile/config.py @@ -221,8 +221,8 @@ screens = [ widget.Spacer( - length=8, - background='#353446', + length=8, + background='#353446', ), @@ -238,10 +238,11 @@ screens = [ widget.CurrentLayout( - background='#353446', - foreground='#CAA9E0', - fmt='{}', - font="JetBrains Mono Bold", + background='#353446', + foreground='#CAA9E0', + fmt='{}', + font="JetBrains Mono Bold", + fontsize=13, ), @@ -261,6 +262,7 @@ screens = [ fmt='Search', background='#282738', font="JetBrains Mono Bold", + fontsize=13, foreground='#CAA9E0', mouse_callbacks={"Button1": search}, ), @@ -333,17 +335,18 @@ screens = [ widget.Spacer( - length=-7, - background='#353446', + length=-7, + background='#353446', ), widget.Memory( - background='#353446', - format='{MemUsed: .0f}{mm}', - foreground='#CAA9E0', - font="JetBrains Mono Bold", - update_interval=5, + background='#353446', + format='{MemUsed: .0f}{mm}', + foreground='#CAA9E0', + font="JetBrains Mono Bold", + fontsize=13, + update_interval=5, ), @@ -372,10 +375,10 @@ screens = [ widget.Battery( - font='JetBrains Mono Bold', - background='#353446', - foreground='#CAA9E0', - format='{percent:2.0%}', + font='JetBrains Mono Bold', + background='#353446', + foreground='#CAA9E0', + format='{percent:2.0%}', ), @@ -408,7 +411,7 @@ screens = [ font='JetBrainsMono Nerd Font', theme_path='~/.config/qtile/Assets/Volume/', emoji=True, - fontsize=12, + fontsize=13, background='#353446', ), @@ -420,9 +423,9 @@ screens = [ widget.Volume( - font='JetBrains Mono Bold', - background='#353446', - foreground='#CAA9E0', + font='JetBrains Mono Bold', + background='#353446', + foreground='#CAA9E0', ), @@ -445,6 +448,7 @@ screens = [ background='#282738', foreground='#CAA9E0', font="JetBrains Mono Bold", + fontsize=13, ), @@ -498,12 +502,15 @@ floating_layout = layout.Floating( +from libqtile import hook +# some other imports import os import subprocess # stuff @hook.subscribe.startup_once -def autostart(): - subprocess.call([os.path.expanduser('~/.config/qtile/autostart_once.sh')]) +def autostart_once(): + subprocess.run('/home/unreal/.config/qtile/autostart_once.sh')# path to my script, under my user directory + subprocess.call([home]) auto_fullscreen = True focus_on_window_activation = "smart" diff --git a/Themes/Everforest/.config/qtile/config.py b/Themes/Everforest/.config/qtile/config.py index 49c7dbe..96c6354 100755 --- a/Themes/Everforest/.config/qtile/config.py +++ b/Themes/Everforest/.config/qtile/config.py @@ -238,10 +238,11 @@ screens = [ widget.CurrentLayout( - background='#343F44', - foreground='#86918A', - fmt='{}', - font="JetBrains Mono Bold", + background='#343F44', + foreground='#86918A', + fmt='{}', + font="JetBrains Mono Bold", + fontsize=13, ), @@ -261,6 +262,7 @@ screens = [ fmt='Search', background='#232A2E', font="JetBrains Mono Bold", + fontsize=13, foreground='#86918A', mouse_callbacks={"Button1": search}, ), @@ -274,7 +276,8 @@ screens = [ widget.WindowName( background = '#343F44', format = "{name}", - font='JetBrains Mono Bold', + font="JetBrains Mono Bold", + fontsize=13, foreground='#86918A', empty_group_string = 'Desktop', @@ -333,17 +336,18 @@ screens = [ widget.Spacer( - length=-7, - background='#343F44', + length=-7, + background='#343F44', ), widget.Memory( - background='#343F44', - format='{MemUsed: .0f}{mm}', - foreground='#86918A', - font="JetBrains Mono Bold", - update_interval=5, + background='#343F44', + format='{MemUsed: .0f}{mm}', + foreground='#86918A', + font="JetBrains Mono Bold", + fontsize=13, + update_interval=5, ), @@ -372,10 +376,11 @@ screens = [ widget.Battery( - font='JetBrains Mono Bold', - background='#343F44', - foreground='#86918A', - format='{percent:2.0%}', + font="JetBrains Mono Bold", + fontsize=13, + background='#343F44', + foreground='#86918A', + format='{percent:2.0%}', ), @@ -405,7 +410,8 @@ screens = [ # ), widget.Volume( - font='JetBrainsMono Nerd Font', + font="JetBrains Mono Bold", + fontsize=13, theme_path='~/.config/qtile/Assets/Volume/', emoji=True, fontsize=12, @@ -420,9 +426,10 @@ screens = [ widget.Volume( - font='JetBrains Mono Bold', - background='#343F44', - foreground='#86918A', + font="JetBrains Mono Bold", + fontsize=13, + background='#343F44', + foreground='#86918A', ), @@ -445,6 +452,7 @@ screens = [ background='#232A2E', foreground='#86918A', font="JetBrains Mono Bold", + fontsize=13, ), diff --git a/Themes/Natura/.config/qtile/config.py b/Themes/Natura/.config/qtile/config.py index 8c71e51..d7520c9 100755 --- a/Themes/Natura/.config/qtile/config.py +++ b/Themes/Natura/.config/qtile/config.py @@ -224,8 +224,8 @@ screens = [ widget.Spacer( - length=8, - background='#202222', + length=8, + background='#202222', ), @@ -241,10 +241,11 @@ screens = [ widget.CurrentLayout( - background='#202222', - foreground='#607767', - fmt='{}', - font="JetBrains Mono Bold", + background='#202222', + foreground='#607767', + fmt='{}', + font="JetBrains Mono Bold", + fontsize=13, ), @@ -264,6 +265,7 @@ screens = [ fmt='Search', background='#0F1212', font="JetBrains Mono Bold", + fontsize=13, foreground='#607767', mouse_callbacks={"Button1": search}, ), @@ -277,7 +279,8 @@ screens = [ widget.WindowName( background = '#202222', format = "{name}", - font='JetBrains Mono Bold', + font="JetBrains Mono Bold", + fontsize=13, foreground='#607767', empty_group_string = 'Desktop', @@ -336,17 +339,18 @@ screens = [ widget.Spacer( - length=-7, - background='#202222', + length=-7, + background='#202222', ), widget.Memory( - background='#202222', - format='{MemUsed: .0f}{mm}', - foreground='#607767', - font="JetBrains Mono Bold", - update_interval=5, + background='#202222', + format='{MemUsed: .0f}{mm}', + foreground='#607767', + font="JetBrains Mono Bold", + fontsize=13, + update_interval=5, ), @@ -375,10 +379,11 @@ screens = [ widget.Battery( - font='JetBrains Mono Bold', - background='#202222', - foreground='#607767', - format='{percent:2.0%}', + font="JetBrains Mono Bold", + fontsize=13, + background='#202222', + foreground='#607767', + format='{percent:2.0%}', ), @@ -408,7 +413,8 @@ screens = [ # ), widget.Volume( - font='JetBrainsMono Nerd Font', + font="JetBrains Mono Bold", + fontsize=13, theme_path='~/.config/qtile/Assets/Volume/', emoji=True, fontsize=12, @@ -423,9 +429,10 @@ screens = [ widget.Volume( - font='JetBrains Mono Bold', - background='#202222', - foreground='#607767', + font="JetBrains Mono Bold", + fontsize=13, + background='#202222', + foreground='#607767', ), @@ -448,6 +455,7 @@ screens = [ background='#0F1212', foreground='#607767', font="JetBrains Mono Bold", + fontsize=13, ), diff --git a/Themes/Sakura/.config/qtile/config.py b/Themes/Sakura/.config/qtile/config.py index b6667b2..c8c1885 100755 --- a/Themes/Sakura/.config/qtile/config.py +++ b/Themes/Sakura/.config/qtile/config.py @@ -224,8 +224,8 @@ screens = [ widget.Spacer( - length=8, - background='#353446', + length=8, + background='#353446', ), @@ -241,10 +241,11 @@ screens = [ widget.CurrentLayout( - background='#353446', - foreground='#E5B9C6', - fmt='{}', - font="JetBrains Mono Bold", + background='#353446', + foreground='#E5B9C6', + fmt='{}', + font="JetBrains Mono Bold", + fontsize=13, ), @@ -264,6 +265,7 @@ screens = [ fmt='Search', background='#282738', font="JetBrains Mono Bold", + fontsize=13, foreground='#E5B9C6', mouse_callbacks={"Button1": search}, ), @@ -277,7 +279,8 @@ screens = [ widget.WindowName( background = '#353446', format = "{name}", - font='JetBrains Mono Bold', + font="JetBrains Mono Bold", + fontsize=13, foreground='#E5B9C6', empty_group_string = 'Desktop', @@ -336,20 +339,21 @@ screens = [ widget.Spacer( - length=-7, - background='#353446', + length=-7, + background='#353446', ), widget.Memory( - background='#353446', - format='{MemUsed: .0f}{mm}', - foreground='#E5B9C6', - font="JetBrains Mono Bold", - update_interval=5, + background='#353446', + format='{MemUsed: .0f}{mm}', + foreground='#E5B9C6', + font="JetBrains Mono Bold", + fontsize=13, + update_interval=5, ), - + # widget.Image( # filename='~/.config/qtile/Assets/Drop2.png', # ), @@ -375,10 +379,11 @@ screens = [ widget.Battery( - font='JetBrains Mono Bold', - background='#353446', - foreground='#E5B9C6', - format='{percent:2.0%}', + font="JetBrains Mono Bold", + fontsize=13, + background='#353446', + foreground='#E5B9C6', + format='{percent:2.0%}', ), @@ -408,7 +413,8 @@ screens = [ # ), widget.Volume( - font='JetBrainsMono Nerd Font', + font="JetBrains Mono Bold", + fontsize=13, theme_path='~/.config/qtile/Assets/Volume/', emoji=True, fontsize=12, @@ -423,9 +429,10 @@ screens = [ widget.Volume( - font='JetBrains Mono Bold', - background='#353446', - foreground='#E5B9C6', + font="JetBrains Mono Bold", + fontsize=13, + background='#353446', + foreground='#E5B9C6', ), @@ -448,6 +455,7 @@ screens = [ background='#282738', foreground='#E5B9C6', font="JetBrains Mono Bold", + fontsize=13, ),