kisscommunity

kisscommunity.bvnf.space site sources
git clone git://bvnf.space/home/kiss/kisscommunity.git
Log | Files | Refs | Submodules | README

index.txt (3167B)


      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
XINIT [0]
________________________________________________________________________________

The xinit program is used to start the X Window System server and a first client 
program on systems that are not using a display manager such as xdm or in 
environments that use multiple window systems. 


Configuration
________________________________________________________________________________

Ensure that you have xinit installed first:

+------------------------------------------------------------------------------+
|                                                                              |
|   $ kiss b xinit && kiss i xinit                                             |
|                                                                              |
+------------------------------------------------------------------------------+

Create the required rc file as a regular user:

+------------------------------------------------------------------------------+
|                                                                              |
|   $ touch ~/.xinitrc                                                         |
|                                                                              |
+------------------------------------------------------------------------------+

At this point, you can add content to your .xinitrc file. For example, if you
wanted to start sowm windows manager, you could add the following:

+------------------------------------------------------------------------------+
|                                                                              |
|   $ echo "exec sowm" >> ~/.xinitrc                                           |
|                                                                              |
+------------------------------------------------------------------------------+

You should now be able to start your X server with startx:

+------------------------------------------------------------------------------+
|                                                                              |
|   $ startx                                                                   |
|                                                                              |
+------------------------------------------------------------------------------+


Start After Login
________________________________________________________________________________

Add the following to the bottom of your ~/.profile file:

+------------------------------------------------------------------------------+
|                                                                              |
|   $ [ -z "$DISPLAY" ] && [ "$(tty)" = /dev/tty1 ] && exec startx             |
|                                                                              |
+------------------------------------------------------------------------------+

If you would like to remain logged in when the X session ends, remove exec.


References
________________________________________________________________________________

[0] https://www.x.org/releases/X11R7.6/doc/man/man1/xinit.1.xhtml
[1] https://wiki.archlinux.org/index.php/Xinit