[Bug]: Waybar expands/jumps when idle inhibitor indicator is toggled
bug
### Already reported ? *
- [x] I have searched the existing open and closed issues.
### Regression?
Not sure
### System Info and Version
<details> <summary>System/Version info</summary>
```
System:
Kernel: 6.17.0-14-generic arch: x86_64 bits: 64
Desktop: Hyprland v: 0.53.3 Distro: Ubuntu 25.10 (Questing Quokka)
Machine:
Type: Laptop System: Acer product: Nitro AN515-58 v: V2.19
Mobo: ADL model: Jimny_ADH v: V2.19
UEFI: Insyde v: 2.19 date: 12/01/2025
Battery:
ID-1: BAT1 charge: 52.6 Wh (100%) condition: 52.6/57.5 Wh (91.5%)
CPU:
Info: 10-core (6-mt/4-st) model: 12th Gen Intel Core i7-12650H bits: 64
type: MST AMCP cache: L2: 9.5 MiB
Speed (MHz): avg: 400 min/max: 400/2300:1700
Graphics:
Device-1: NVIDIA GA104 [Geforce RTX 3070 Ti Laptop GPU] driver: nvidia
v: 590.48.01
Display: wayland server: X.Org v: 24.1.6 with: Xwayland v: 24.1.6
compositor: Hyprland v: 0.53.3 driver: X: loaded: nvidia
resolution: 2560x1440~165Hz
API: OpenGL v: 4.6.0 vendor: nvidia mesa v: 25.2.8-0ubuntu0.25.10.1
renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio
driver: sof-audio-pci-intel-tgl
Device-2: NVIDIA GA104 High Definition Audio driver: snd_hda_intel
Server-1: PipeWire v: 1.4.7 status: active
Network:
Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi
Device-2: Realtek Killer E2600 GbE driver: r8169
Drives:
Local Storage: total: 953.87 GiB used: 254.91 GiB (26.7%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL21T0HCLR-00B07
size: 953.87 GiB
Info:
Memory: total: 16 GiB available: 14.82 GiB used: 7.17 GiB (48.4%)
Shell: Zsh inxi: 3.3.39
```
</details>
### KooL's Dots version
v2.3.20
### Description
Waybar physically expands and jumps in height whenever the idle inhibitor or hypridle indicator is toggled.
The root cause is `border-bottom: 8px solid rgba(0, 0, 0, 0.2)` in the indicator styles for `#idle_inhibitor.activated` and `#custom-hypridle.notactive`. CSS borders add to the element's total height, so when the state toggles and the border appears, the whole bar gets pushed. This affects all 44 waybar style CSS files under `config/waybar/style/`.
A simple fix would be removing the border-bottom entirely (the color change to green is already a clear indicator). Or if the underline look is preferred, replacing it with `box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.2)` gives the same visual effect without touching layout. I'm happy to submit a PR with either approach.
### How to reproduce
1. Launch Waybar with any included style theme
2. Click the idle inhibitor icon
3. Notice the Waybar height jumps/expands when the indicator activates
### install logs, images or videos
https://github.com/user-attachments/assets/8ae4f870-0cf5-488a-87cc-dd7bac97fbf2
关闭于 2026-02-28 1 条评论