Working on new qtile with rounded floating bar and new icon.

This commit is contained in:
Derek Taylor
2025-02-26 18:16:55 -06:00
parent c227730755
commit 5ba2ad94a5
4 changed files with 134 additions and 215 deletions

View File

@@ -265,11 +265,11 @@ Groups are really workspaces. group_names should remain 1-9 so the MOD+1-9 keyb
groups = []
group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
#group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]
#group_labels = ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "GFX",]
#group_labels = ["", "", "", "", "", "", "", "", "",]
group_labels = ["", "", "", "", "", "🎙 ", "", "", ""]
group_layouts = ["monadtall", "monadtall", "tile", "tile", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall"]
for i in range(len(group_names)):
groups.append(
@@ -325,7 +325,7 @@ Some settings that I use on almost every layout, which saves me from having to t
#+begin_src python
layout_theme = {"border_width": 2,
"margin": 8,
"margin": 12,
"border_focus": colors[8],
"border_normal": colors[0]
}
@@ -403,9 +403,11 @@ This is the bar (the panel) and the widgets within the bar.
#+begin_src python
def init_widgets_list():
widgets_list = [
widget.Spacer(length = 8),
widget.Image(
filename = "~/.config/qtile/icons/logo.png",
filename = "~/.config/qtile/icons/infinity-icon.png",
scale = "False",
margin_x = 5,
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)},
),
widget.Prompt(
@@ -418,10 +420,10 @@ def init_widgets_list():
margin_y = 5,
margin_x = 5,
padding_y = 0,
padding_x = 1,
padding_x = 2,
borderwidth = 3,
active = colors[8],
inactive = colors[1],
inactive = colors[9],
rounded = False,
highlight_color = colors[2],
highlight_method = "line",
@@ -433,16 +435,10 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
widget.CurrentLayoutIcon(
# custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
foreground = colors[1],
padding = 4,
scale = 0.6
),
widget.CurrentLayout(
foreground = colors[1],
padding = 5
@@ -450,7 +446,7 @@ def init_widgets_list():
widget.TextBox(
text = '|',
font = "Ubuntu Mono",
foreground = colors[1],
foreground = colors[9],
padding = 2,
fontsize = 14
),
@@ -463,38 +459,20 @@ def init_widgets_list():
func = lambda: subprocess.check_output("printf $(uname -r)", shell=True, text=True),
foreground = colors[3],
fmt = '{}',
decorations=[
BorderDecoration(
colour = colors[3],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.CPU(
format = ' Cpu: {load_percent}%',
format = ' Cpu: {load_percent}%',
foreground = colors[4],
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
),
widget.Spacer(length = 12),
widget.Memory(
foreground = colors[8],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
format = '{MemUsed: .0f}{mm}',
fmt = '🖥 Mem: {} used',
decorations=[
BorderDecoration(
colour = colors[8],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.DF(
update_interval = 60,
foreground = colors[5],
@@ -504,49 +482,25 @@ def init_widgets_list():
format = '{uf}{m} free',
fmt = '🖴 Disk: {}',
visible_on_warn = False,
decorations=[
BorderDecoration(
colour = colors[5],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.Volume(
foreground = colors[7],
fmt = '🕫 Vol: {}',
decorations=[
BorderDecoration(
colour = colors[7],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.KeyboardLayout(
foreground = colors[4],
fmt = '⌨ Kbd: {}',
decorations=[
BorderDecoration(
colour = colors[4],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.Clock(
foreground = colors[8],
format = "%a, %b %d - %H:%M",
decorations=[
BorderDecoration(
colour = colors[8],
border_width = [0, 0, 2, 0],
)
],
),
widget.Spacer(length = 8),
widget.Spacer(length = 12),
widget.Systray(padding = 3),
widget.Spacer(length = 8),
widget.Spacer(length = 18),
]
return widgets_list
@@ -571,9 +525,9 @@ def init_widgets_screen2():
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26))]
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=28)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=28))]
if __name__ in ["config", "__main__"]:
screens = init_screens()