waybar cleanup
This commit is contained in:
@@ -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
@@ -19,9 +19,7 @@
|
||||
"modules-right": [
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"custom/notification",
|
||||
"tray",
|
||||
"custom/power",
|
||||
"clock"
|
||||
],
|
||||
// Modules configuration
|
||||
@@ -44,6 +42,7 @@
|
||||
"dwl/window": {
|
||||
"format": "{layout} {title}",
|
||||
"max-length": 50,
|
||||
"tooltip": false,
|
||||
"rewrite": {
|
||||
" \\| ": ""
|
||||
}
|
||||
@@ -119,7 +118,8 @@
|
||||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "~/.config/waybar/scripts/audio-output-menu.sh"
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "",
|
||||
@@ -133,31 +133,6 @@
|
||||
},
|
||||
"on-click": "blueman-manager",
|
||||
"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
@@ -13,10 +13,61 @@
|
||||
margin: 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 {
|
||||
background: @theme_bg_color;
|
||||
color: @theme_fg_color;
|
||||
color: rgba(198, 208, 245, 0.3);
|
||||
}
|
||||
#window,
|
||||
#mpris {
|
||||
@@ -25,7 +76,6 @@
|
||||
#clock,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#custom-notification,
|
||||
#tray,
|
||||
#custom-power {
|
||||
padding: 0 0.75rem;
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user