~/swaydesk/components/osd

← All components

Volume and brightness indicator

Volume and brightness indicator

Volume and brightness indicator

Icon, bar and percentage at the bottom of the screen, above the dock, for a second.

  • The volume keys change the volume 5% at a time, shown in the accent color.
  • Muted, the icon becomes a crossed-out speaker and the bar turns grey.
  • The brightness keys change it 5% at a time, never below 1%, with a white bar.
  • Volume up stops at 100%.
  • Scrolling on the bar’s volume or brightness icon shows it too.
  • It works on the lock screen as well.
  • Clicks pass through it, it never takes the keyboard, and it shows over fullscreen windows.

Rust + GTK 4 · source · turn off: [enabled] osd = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-osd

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-osd

Arch Linux

sudo pacman -Syu swaydesk-osd

Start it on plain Sway

In ~/.config/sway/config:

include /usr/share/swaydesk/sway/config.d/50-swaydesk-osd.conf

The volume and brightness keys change the level and show it, also on the lock screen. They replace earlier bindings of the same keys, so include the file after those; a binding of yours after the include wins.

It runs as a systemd user unit, restarted if it crashes, and does nothing inside the Swaydesk session. Put the include after your config's set $mod. Without a systemd user session, use the exec line in the file's last comment instead.

Shortcuts

Volume and brightness keys

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.