Sway: Difference between revisions
m Added home manager config alternative |
m Added link to swayosd page |
||
| Line 140: | Line 140: | ||
=== Brightness and volume === | === Brightness and volume === | ||
You | You may set the brightness and volume function keys by binding the key codes to their corresponding commands within your sway config. The following configurations accomplish this using <code>light</code> and <code>pulseaudio</code>: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
users.users.yourusername.extraGroups = [ "video" ]; | users.users.yourusername.extraGroups = [ "video" ]; | ||
| Line 172: | Line 172: | ||
}; | }; | ||
}; | }; | ||
};|name=/etc/nixos/home.nix|lang=nix}} | };|name=/etc/nixos/home.nix|lang=nix}}For an on screen display for audio and brightness, check [[swayosd]]. | ||
== Troubleshooting == | == Troubleshooting == | ||