remove qtile bar and add nurgle icon to waybar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 21:50:21 +02:00
co-authored by Claude Sonnet 4.6
parent ce840bea59
commit 06bdcc9f24
3 changed files with 17 additions and 109 deletions
+2 -108
View File
@@ -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.config import Click, Drag, Group, Key, KeyChord, Match, Screen
from libqtile.lazy import lazy from libqtile.lazy import lazy
from libqtile.utils import guess_terminal from libqtile.utils import guess_terminal
@@ -107,9 +107,6 @@ colors = [
["#444b6a", "#444b6a"] # color[9] (bright.black) ["#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 = { layout_theme = {
"border_width" : 1, "border_width" : 1,
"margin" : 1, "margin" : 1,
@@ -123,110 +120,7 @@ layouts = [
layout.MonadTall(**layout_theme), layout.MonadTall(**layout_theme),
] ]
widget_defaults = dict( screens = [Screen()]
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
),
),
]
# Drag floating layouts. # Drag floating layouts.
mouse = [ mouse = [
+6 -1
View File
@@ -2,7 +2,12 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"height": 24, "height": 24,
"modules-left": ["sway/workspaces"], "modules-left": ["custom/nurgle", "sway/workspaces"],
"custom/nurgle": {
"format": "",
"tooltip": false
},
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["cpu", "battery"], "modules-right": ["cpu", "battery"],
+9
View File
@@ -11,6 +11,15 @@ window#waybar {
color: #f3eeea; 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 { #workspaces button {
color: #f3eeea; color: #f3eeea;
background: transparent; background: transparent;