From 313a0804c6d1ef59c386d115bf4f8ff2d6b41b62 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Thu, 26 Oct 2023 18:31:54 +0200 Subject: [PATCH] improved qtile --- qtile/.config/qtile/Bars.py | 4 ++-- qtile/.config/qtile/Groups.py | 17 ++++++++--------- qtile/.config/qtile/Widgets.py | 13 +++++++------ .../custom/plugins/zsh-syntax-highlighting | 2 +- zsh/.oh-my-zsh/custom/themes/powerlevel10k | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/qtile/.config/qtile/Bars.py b/qtile/.config/qtile/Bars.py index 6fd1503..af4640c 100644 --- a/qtile/.config/qtile/Bars.py +++ b/qtile/.config/qtile/Bars.py @@ -6,9 +6,9 @@ from Widgets import Left_widgets, volume_widget, System_widgets, end_widgets, La widget_defaults = dict( background=base_color, - font='Ubuntu Mono', + font='UbuntuMono Nerd Font', fontsize=18, - padding=1 if chassis_type == ChassisType.LAPTOP else 3, + padding=1 if chassis_type == ChassisType.LAPTOP else 5, ) extension_defaults = widget_defaults.copy() diff --git a/qtile/.config/qtile/Groups.py b/qtile/.config/qtile/Groups.py index 06a25b3..84ce022 100644 --- a/qtile/.config/qtile/Groups.py +++ b/qtile/.config/qtile/Groups.py @@ -7,15 +7,14 @@ import re from defines import mod,term from Keys import keys -group_names = [("","Home", 'h',{'layout': 'monadtall'}), - ("","Browser", 'f',{'layout': 'monadtall'}), - ("","Mail", 'm',{'layout': 'monadtall', 'matches':[Match(wm_class="Mail")]}), - ("","Coding", 'c',{'layout': 'monadtall', 'matches' : [Match(wm_class="code")]}), - ("","Documents", 'l',{'layout': 'monadtall'}), - ("ﱘ","Music", 'u',{'layout': 'monadtall', 'matches' : [Match(wm_class="spotify")]}), - ("","Video", 'v',{'layout': 'monadtall', 'matches' : [Match(wm_class="vlc")]}), - ("ﭮ","VideoChat", 'z',{'layout': 'monadtall', 'matches':[Match(wm_class="discord")]}), - ("","Planta Pulse", 'p',{'layout': 'monadtall', 'matches' : [Match(wm_class="surf")]}), +group_names = [(" ","Home", 'h',{'layout': 'monadtall'}), + (" ","Browser", 'f',{'layout': 'monadtall'}), + (" ","Mail", 'm',{'layout': 'monadtall', 'matches':[Match(wm_class="Mail")]}), + (" ","Coding", 'c',{'layout': 'monadtall', 'matches' : [Match(wm_class="code")]}), + (" ","Documents", 'l',{'layout': 'monadtall'}), + ("󰝚 ","Music", 'u',{'layout': 'monadtall', 'matches' : [Match(wm_class="spotify")]}), + (" ","Video", 'v',{'layout': 'monadtall', 'matches' : [Match(wm_class="vlc")]}), + ("󰙯 ","VideoChat", 'z',{'layout': 'monadtall', 'matches':[Match(wm_class="discord")]}), ("一","etc1", '1', {'layout': 'monadtall'}), ("二","etc2", '2', {'layout': 'monadtall'}), ("三","etc3", '3', {'layout': 'monadtall'}), diff --git a/qtile/.config/qtile/Widgets.py b/qtile/.config/qtile/Widgets.py index 187b4bc..d00a5b4 100644 --- a/qtile/.config/qtile/Widgets.py +++ b/qtile/.config/qtile/Widgets.py @@ -38,7 +38,7 @@ def Left_widgets(size,fontsize,prompt=False): ), *powerline_arrow('r',base_color,blue_color,size), widget.TextBox( - text='', + text=' ', foreground=light_foreground_color, fontsize=fontsize, background=blue_color @@ -47,6 +47,7 @@ def Left_widgets(size,fontsize,prompt=False): widget.GroupBox( fontsize=fontsize, rounded=False, + disable_drag=True, active=light_foreground_color, inactive=dark_foreground_color, highlight_method='block', @@ -103,7 +104,7 @@ def System_widgets(prev_color,last_color,size,fontsize): return [ *powerline_arrow('l',prev_color,orange_color,size), widget.TextBox( - text='', + text='󰈸', foreground=light_foreground_color, background=orange_color, fontsize=fontsize+6 @@ -117,7 +118,7 @@ def System_widgets(prev_color,last_color,size,fontsize): ), *powerline_arrow('l',orange_color,green_color,size), widget.TextBox( - text='', + text=' ', foreground=light_foreground_color, background=green_color, fontsize=fontsize+6 @@ -131,7 +132,7 @@ def System_widgets(prev_color,last_color,size,fontsize): ), *powerline_arrow('l',green_color,yellow_color,size), widget.TextBox( - text='﬙', + text='󰍛 ', foreground=light_foreground_color, background=yellow_color, fontsize=fontsize+6 @@ -145,7 +146,7 @@ def System_widgets(prev_color,last_color,size,fontsize): ), *powerline_arrow('l',yellow_color,last_color,size), widget.TextBox( - text='', + text='󰈀 ', foreground=light_foreground_color, background=blue_color, fontsize=fontsize+6 @@ -174,7 +175,7 @@ def end_widgets(prev_color,size,fontsize): return [ *powerline_arrow('l',prev_color,purple_color,size), widget.TextBox( - text='ﭷ', + text=' ', foreground=light_foreground_color, background=purple_color, fontsize=fontsize diff --git a/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting b/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting index 143b25e..1e82d8c 160000 --- a/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting +++ b/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting @@ -1 +1 @@ -Subproject commit 143b25eb98aa3227af63bd7f04413e1b3e7888ec +Subproject commit 1e82d8c83efa8b9fd0c7d1b9baffeb47d6cff960 diff --git a/zsh/.oh-my-zsh/custom/themes/powerlevel10k b/zsh/.oh-my-zsh/custom/themes/powerlevel10k index 862440a..4306167 160000 --- a/zsh/.oh-my-zsh/custom/themes/powerlevel10k +++ b/zsh/.oh-my-zsh/custom/themes/powerlevel10k @@ -1 +1 @@ -Subproject commit 862440ae112603c8e2d202f6edb94eeaa1509120 +Subproject commit 430616734aa06ff3def48cb511fb43db7466a64e