Swayosd
Appearance
SwayOSD is a OSD (On Screen Display) window for common actions such as volume, playback, and caps lock.
Installation
SwayOSD may be installed simply by adding it into your configuration like so.
❄︎ /etc/nixos/configuration.nix
environment.systemPackages = [
pkgs.swayosd
];
Home Manager
SwayOSD has some options configurable in home manager, you may find them under Home Manger - services.swayosd.
❄︎ /etc/nixos/home.nix
services.swayosd = {
enable = true;
# OSD Margin from the top edge, 0.5 would be the screen center. May be from 0.0 - 1.0.
topMargin = 0.9;
# For a custom stylesheet file.
#stylePath = "/etc/xdg/swayosd/style.css";
};