mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +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:
parent
8a160f01ab
commit
690d93c22a
1 changed files with 16 additions and 7 deletions
|
@ -645,12 +645,21 @@ in {
|
|||
|
||||
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 = "firefox"; workspace = "1: web"; }
|
||||
];
|
||||
''
|
||||
else
|
||||
literalExample ''
|
||||
[
|
||||
{ command = "systemctl --user restart waybar"; always = true; }
|
||||
{ command = "dropbox start"; }
|
||||
{ command = "firefox"; }
|
||||
]
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue