Skip to content

Commit bc2ba63

Browse files
kkgaericonr
authored andcommitted
xorg.md: add note on autostarting programs
1 parent 689fb87 commit bc2ba63

File tree

1 file changed

+12
-3
lines changed
  • src/config/graphical-session

1 file changed

+12
-3
lines changed

src/config/graphical-session/xorg.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,23 @@ If there is a match, modesetting is being used.
9999

100100
The `xinit` package provides the [startx(1)](https://man.voidlinux.org/startx.1)
101101
script as a frontend to [xinit(1)](https://man.voidlinux.org/xinit.1), which can
102-
be used to start X sessions from the console. For example, to use i3, edit
103-
`~/.xinitrc` to contain:
102+
be used to start X sessions from the console. For example, to start
103+
[i3(1)](https://man.voidlinux.org/i3.1), edit `~/.xinitrc` to contain `exec
104+
/bin/i3` on the last line.
105+
106+
To start arbitrary programs together with an X session, add them in `~/.xinitrc`
107+
before the last line. For example, to start
108+
[pipewire(1)](https://man.voidlinux.org/pipewire.1) before starting i3, add
109+
`pipewire &` before the last line.
110+
111+
A `~/.xinitrc` file which starts `pipewire` and `i3` is shown below:
104112

105113
```
114+
pipewire &
106115
exec /bin/i3
107116
```
108117

109-
Then call `startx` to start an i3 session.
118+
Then call `startx` to start a session.
110119

111120
If a D-Bus session bus is required, you can [manually start
112121
one](../session-management.md#d-bus).

0 commit comments

Comments
 (0)