default-config: Clarify spawn comments
Browse files at this commitefb39e466b5248eb894745e899de33661493511dParent: 14d637f1 changed file +3 -1
resources/default-config.kdlmodified+3 -1
| @@ -187,6 +187,7 @@ layout { | |||
| 187 | // Add lines like this to spawn processes at startup. | 187 | // Add lines like this to spawn processes at startup. |
| 188 | // Note that running niri as a session supports xdg-desktop-autostart, | 188 | // Note that running niri as a session supports xdg-desktop-autostart, |
| 189 | // which may be more convenient to use. | 189 | // which may be more convenient to use. |
| 190 | +// See the binds section below for more spawn examples. | ||
| 190 | // spawn-at-startup "alacritty" "-e" "fish" | 191 | // spawn-at-startup "alacritty" "-e" "fish" |
| 191 | 192 | ||
| 192 | // Uncomment this line to ask the clients to omit their client-side decorations if possible. | 193 | // Uncomment this line to ask the clients to omit their client-side decorations if possible. |
| @@ -259,7 +260,8 @@ binds { | |||
| 259 | Mod+D { spawn "fuzzel"; } | 260 | Mod+D { spawn "fuzzel"; } |
| 260 | Super+Alt+L { spawn "swaylock"; } | 261 | Super+Alt+L { spawn "swaylock"; } |
| 261 | 262 | ||
| 262 | - // You can also use a shell: | 263 | + // You can also use a shell. Do this if you need pipes, multiple commands, etc. |
| 264 | + // Note: the entire command goes as a single argument in the end. | ||
| 263 | // Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; } | 265 | // Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; } |
| 264 | 266 | ||
| 265 | // Example volume keys mappings for PipeWire & WirePlumber. | 267 | // Example volume keys mappings for PipeWire & WirePlumber. |