1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00

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,12 +645,21 @@ 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 = "systemctl --user restart polybar"; always = true; notification = false; }
{ command = "dropbox start"; notification = false; } { command = "dropbox start"; notification = false; }
{ command = "firefox"; workspace = "1: web"; } { command = "firefox"; workspace = "1: web"; }
]; ];
''
else
literalExample ''
[
{ command = "systemctl --user restart waybar"; always = true; }
{ command = "dropbox start"; }
{ command = "firefox"; }
]
''; '';
}; };