remove qtile bar and add nurgle icon to waybar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-108
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user