Swayosd: Difference between revisions
Appearance
Created a page for swayosd |
m Fixed code |
||
| Line 12: | Line 12: | ||
enable = true; | enable = true; | ||
# OSD Margin from the top edge, 0.5 would be the screen center. May be from 0.0 - 1.0. | # OSD Margin from the top edge, 0.5 would be the screen center. May be from 0.0 - 1.0. | ||
topMargin = | topMargin = 0.9; | ||
# For a custom stylesheet file. | # For a custom stylesheet file. | ||
#stylePath = "/etc/xdg/swayosd/style.css"; | #stylePath = "/etc/xdg/swayosd/style.css"; | ||
};|name=/etc/nixos/home.nix|lang=nix}} | };|name=/etc/nixos/home.nix|lang=nix}} | ||
Revision as of 20:53, 24 December 2025
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";
};