revert tray drawer feature and remove mouse-battery module

The tray drawer added complexity (drawer config, custom chevron module,
state-feedback CSS) for what amounts to a small visual refinement.
Removed in favour of the original always-visible tray. The mouse-battery
indicator was also removed from the bar.

Deletes:
- waybar/mouse-battery.sh + symlink + install.sh entry
- group/tray-drawer + custom/mouse-battery blocks in config.jsonc
- #custom-tray-arrow rules from style.css
- docs/superpowers/{specs,plans} for the drawer feature

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-01 09:41:00 -07:00
parent 2c851c7561
commit c21a2834b7
6 changed files with 1 additions and 326 deletions
+1 -23
View File
@@ -5,14 +5,7 @@
"modules-left": ["niri/workspaces"],
"modules-center": ["custom/clock"],
"modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "custom/mouse-battery", "group/tray-drawer"],
"custom/mouse-battery": {
"exec": "~/.config/waybar/mouse-battery.sh",
"interval": 60,
"format": " {output}",
"tooltip": false
},
"modules-right": ["cpu", "temperature", "custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "tray"],
"cpu": {
"format": " {usage}%",
"format-tooltip": "{usage}% total\n{icon0} {icon1} {icon2} {icon3}\n{icon4} {icon5} {icon6} {icon7}\n{icon8} {icon9} {icon10} {icon11}",
@@ -73,21 +66,6 @@
"spacing": 8
},
"group/tray-drawer": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 200,
"transition-left-to-right": true,
"click-to-reveal": true
},
"modules": ["custom/tray-arrow", "tray"]
},
"custom/tray-arrow": {
"format": "",
"tooltip": false
},
"network": {
"format-wifi": " {essid}",
"format-ethernet": "󰈀",
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
# Generic mouse battery script for Waybar
MOUSE_BATTERY=$(upower -e | grep -i mouse | head -n1)
if [ -n "$MOUSE_BATTERY" ]; then
upower -i "$MOUSE_BATTERY" | awk '/percentage:/ { print $2 }'
else
echo "N/A"
fi
-10
View File
@@ -56,13 +56,3 @@ window#waybar {
#temperature.critical {
color: @tn-red;
}
#custom-tray-arrow {
padding: 0 12px;
color: @tn-fg-muted;
transition: color 200ms ease;
}
#group-tray-drawer.expanded #custom-tray-arrow {
color: @tn-fg;
}