1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
SX [0]
________________________________________________________________________________
sx is a simple alternative to both xinit and startx for starting an Xorg
server.
Configuration
________________________________________________________________________________
Ensure that you have sx installed first:
+------------------------------------------------------------------------------+
| |
| $ kiss b sx && kiss i sx |
| |
+------------------------------------------------------------------------------+
The default XDG_DATA_HOME and XDG_CONFIG_HOME directories can be modified via
environment variables:
+------------------------------------------------------------------------------+
| |
| $ echo "export XDG_DATA_HOME=$HOME/.config" >> ~/.profile |
| $ echo "export XDG_CONFIG_HOME=$HOME/.config" >> ~/.profile |
| |
+------------------------------------------------------------------------------+
Create the required directories and rc file:
+------------------------------------------------------------------------------+
| |
| $ mkdir -p ~/.config/sx |
| $ touch ~/.config/sx/sxrc |
| $ chmod +x ~/.config/sx/sxrc |
| |
+------------------------------------------------------------------------------+
At this point, you can add content to your sxrc file. For example, if you
wanted to start sowm window manager, you could add the following:
+------------------------------------------------------------------------------+
| |
| $ echo "exec sowm" >> ~/.config/sx/sxrc |
| |
+------------------------------------------------------------------------------+
You should now be able to start your window manager and X server with sx:
+------------------------------------------------------------------------------+
| |
| $ sx |
| |
+------------------------------------------------------------------------------+
Start After Login
________________________________________________________________________________
Add the following to the bottom of your ~/.profile file:
+------------------------------------------------------------------------------+
| |
| $ [ -z "$DISPLAY" ] && [ "$(tty)" = /dev/tty1 ] && exec sx |
| |
+------------------------------------------------------------------------------+
If you would like to remain logged in when the X session ends, remove exec.
References
________________________________________________________________________________
[0] https://github.com/Earnestly/sx
|