sway: fix startup example (#1517)

Fixes #1515. Example for `wayland.windowManager.config.startup`
referenced options `notification` and `workspace` which are not valid
for sway.
This commit is contained in:
Alex Rice 2020-09-24 10:16:54 +01:00 committed by GitHub
parent 8a160f01ab
commit 690d93c22a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -645,13 +645,22 @@ in {
See <link xlink:href="https://i3wm.org/docs/userguide.html#_automatically_starting_applications_on_i3_startup"/>. See <link xlink:href="https://i3wm.org/docs/userguide.html#_automatically_starting_applications_on_i3_startup"/>.
''; '';
example = literalExample '' example = if moduleName == "i3" then
[ literalExample ''
{ command = "systemctl --user restart polybar"; always = true; notification = false; } [
{ command = "dropbox start"; notification = false; } { command = "systemctl --user restart polybar"; always = true; notification = false; }
{ command = "firefox"; workspace = "1: web"; } { command = "dropbox start"; notification = false; }
]; { command = "firefox"; workspace = "1: web"; }
''; ];
''
else
literalExample ''
[
{ command = "systemctl --user restart waybar"; always = true; }
{ command = "dropbox start"; }
{ command = "firefox"; }
]
'';
}; };
gaps = mkOption { gaps = mkOption {