From 06bdcc9f247a563ac06e09277b333616ff75821d Mon Sep 17 00:00:00 2001 From: ulve Date: Fri, 12 Jun 2026 21:50:21 +0200 Subject: [PATCH] remove qtile bar and add nurgle icon to waybar Co-Authored-By: Claude Sonnet 4.6 --- config/qtile/config.py | 110 +--------------------------------------- config/waybar/config | 7 ++- config/waybar/style.css | 9 ++++ 3 files changed, 17 insertions(+), 109 deletions(-) diff --git a/config/qtile/config.py b/config/qtile/config.py index 47c53bd..d32db02 100644 --- a/config/qtile/config.py +++ b/config/qtile/config.py @@ -1,4 +1,4 @@ -from libqtile import bar, extension, hook, layout, qtile, widget +from libqtile import extension, hook, layout, qtile from libqtile.config import Click, Drag, Group, Key, KeyChord, Match, Screen from libqtile.lazy import lazy from libqtile.utils import guess_terminal @@ -107,9 +107,6 @@ colors = [ ["#444b6a", "#444b6a"] # color[9] (bright.black) ] -# helper in case your colors are ["#hex", "#hex"] -def C(x): return x[0] if isinstance(x, (list, tuple)) else x - layout_theme = { "border_width" : 1, "margin" : 1, @@ -123,110 +120,7 @@ layouts = [ layout.MonadTall(**layout_theme), ] -widget_defaults = dict( - font="JetBrainsMono Nerd Font Propo Bold", - fontsize=32, - padding=0, - background=colors[0], -) - -extension_defaults = widget_defaults.copy() - -sep = widget.Sep(linewidth=1, padding=8, foreground=colors[9]) - -screens = [ - Screen( - top=bar.Bar( - widgets=[ - # left - widget.Spacer(length=8), - widget.Image( - filename="~/.config/qtile/icons/nurgle.png", - scale="False", - mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("qtilekeys-yad")}, - ), - widget.Prompt( - font="Ubuntu Mono", - fontsize=14, - foreground=colors[1] - ), - widget.GroupBox( - fontsize=18, - margin_y=5, - margin_x=5, - padding_y=0, - padding_x=2, - borderwidth=3, - active=colors[8], - inactive=colors[9], - rounded=False, - highlight_color=colors[0], - highlight_method="line", - this_current_screen_border=colors[7], - this_screen_border=colors[4], - other_current_screen_border=colors[7], - other_screen_border=colors[4], - ), - widget.TextBox( - text='|', - font="JetBrainsMono Nerd Font Propo Bold", - foreground=colors[9], - padding=2, - fontsize=14 - ), - widget.CurrentLayout( - foreground=colors[1], - padding=5 - ), - # center - widget.Spacer(), - widget.Clock( - foreground=colors[8], - padding=8, - mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('notify-date')}, - format="%y-%m-%d (%a w%V) %H:%M", - ), - widget.Spacer(), - # right - widget.CPU( - foreground=colors[4], - padding=8, - mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e btop')}, - format="CPU: {load_percent}%", - ), - sep, - widget.Memory( - foreground=colors[8], - padding=8, - mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e btop')}, - format='Mem: {MemUsed:.0f}{mm}', - ), - sep, - widget.Volume( - foreground=colors[7], - padding=8, - fmt='Vol: {}', - ), - sep, - widget.Battery( - foreground=colors[4], - padding=8, - update_interval=5, - format='{percent:.0%} {char}', - charge_char='⚡', - discharge_char='', - full_char='✔', - unknown_char='?', - empty_char='!', - ), - widget.Systray(padding=6), - widget.Spacer(length=8), - ], - margin=[0, 0, 0, 0], - size=30 - ), - ), -] +screens = [Screen()] # Drag floating layouts. mouse = [ diff --git a/config/waybar/config b/config/waybar/config index b3c057b..a3ba82e 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -2,7 +2,12 @@ "layer": "top", "position": "top", "height": 24, - "modules-left": ["sway/workspaces"], + "modules-left": ["custom/nurgle", "sway/workspaces"], + + "custom/nurgle": { + "format": "", + "tooltip": false + }, "modules-center": ["clock"], "modules-right": ["cpu", "battery"], diff --git a/config/waybar/style.css b/config/waybar/style.css index 07fb30c..ca77a9c 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -11,6 +11,15 @@ window#waybar { color: #f3eeea; } +#custom-nurgle { + background-image: url("/home/ulve/.config/qtile/icons/nurgle.png"); + background-size: contain; + background-repeat: no-repeat; + background-position: center; + min-width: 24px; + padding: 0 4px; +} + #workspaces button { color: #f3eeea; background: transparent;