waybar cleanup

This commit is contained in:
2026-08-22 11:26:19 +02:00
parent 4b56db6e16
commit 49775d2b18
4 changed files with 55 additions and 61 deletions
-21
View File
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="performance">
<property name="label">Performance</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="balanced">
<property name="label">Balanced</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="powersaver">
<property name="label">Powersaver</property>
</object>
</child>
</object>
</interface>
+3 -28
View File
@@ -19,9 +19,7 @@
"modules-right": [ "modules-right": [
"battery", "battery",
"pulseaudio", "pulseaudio",
"custom/notification",
"tray", "tray",
"custom/power",
"clock" "clock"
], ],
// Modules configuration // Modules configuration
@@ -44,6 +42,7 @@
"dwl/window": { "dwl/window": {
"format": "{layout} {title}", "format": "{layout} {title}",
"max-length": 50, "max-length": 50,
"tooltip": false,
"rewrite": { "rewrite": {
" \\| ": "" " \\| ": ""
} }
@@ -119,7 +118,8 @@
"format-icons": { "format-icons": {
"default": ["", "", ""] "default": ["", "", ""]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol",
"on-click-right": "~/.config/waybar/scripts/audio-output-menu.sh"
}, },
"bluetooth": { "bluetooth": {
"format": "󰂲", "format": "󰂲",
@@ -133,31 +133,6 @@
}, },
"on-click": "blueman-manager", "on-click": "blueman-manager",
"tooltip-format-connected": "{device_enumerate}" "tooltip-format-connected": "{device_enumerate}"
},
"custom/notification": {
"format": "{icon} {text}",
"tooltip": false,
"format-icons": {
"notification": "󱅫",
"none": "",
"dnd-notification": "",
"dnd-none": "󰂛",
"inhibited-notification": "",
"inhibited-none": "",
"dnd-inhibited-notification": "",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/power": {
"format" : "⏻",
"tooltip": false,
"on-click": "wlogout"
} }
} }
+52 -2
View File
@@ -13,10 +13,61 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/* Tray right-click menu (GTK context menu) */
menu, .menu, drawer {
background-color: @mantle;
color: @theme_fg_color;
border: 1px solid @surface0;
border-radius: 8px;
padding: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
/* Individual items inside the menu */
menuitem, menu header, menu button {
background-color: transparent;
color: @theme_fg_color;
border-radius: 6px;
margin: 1px 2px;
padding: 6px 10px;
min-height: 0;
}
/* Hover / active state */
menuitem:hover,
menuitem:selected {
background-color: @lavender;
color: @theme_selected_fg_color;
}
menuitem:disabled {
color: @insensitive_fg_color;
}
/* Separators between menu sections */
menu separator {
background-color: @surface1;
min-height: 1px;
margin: 4px 6px;
}
/* Waybar module tooltips */
tooltip {
background-color: @mantle;
color: @theme_fg_color;
border: 1px solid @surface0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
tooltip label {
color: @theme_fg_color;
padding: 6px 10px;
}
#waybar { #waybar {
background: @theme_bg_color; background: @theme_bg_color;
color: @theme_fg_color; color: rgba(198, 208, 245, 0.3);
} }
#window, #window,
#mpris { #mpris {
@@ -25,7 +76,6 @@
#clock, #clock,
#battery, #battery,
#pulseaudio, #pulseaudio,
#custom-notification,
#tray, #tray,
#custom-power { #custom-power {
padding: 0 0.75rem; padding: 0 0.75rem;
-10
View File
@@ -1,10 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q waybar
# Wait until the processes have been shut down
while pgrep -x waybar >/dev/null; do sleep 1; done
# Launch main
waybar