|/
|\ISS

News
Blog

Wiki (NEW!)

Install KISS
FAQ

Package System
Package Manager
Software

Guidestones

Testimonials
Screenshots
Team

Contact
Donate

GitHub
Git (mirror)


wiki / xorg / sx                                                  Edit this page

Edited (b8498c9) at 2020-06-23 by Michael Czigler


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


________________________________________________________________________________

Dylan Araps (C) 2019-2020

Linux(R) is the registered trademark of Linus Torvalds in the U.S. and
other countries.