Andreas Reuleaux <[email protected]> writes:

> I am fairly new to guix, thus bear with me please.
>
> I want to start X on my system with startx - i.e. log into my system
> just from a tty, and then start X by hand (and i3 will be my window
> manager, I just have an .xsession file in my $HOME, where I start i3)
> - I do not want any desktop-services / desktop-manager / graphical login 
> manager
> (this may seem old school - but has worked fine for me for years
> under debian). 

Somewhere in you $PATH… startx witch:

#+BEGIN_SRC shell
#!/bin/sh

DIR=$HOME/.guix-profile

# Automatically determine an unused $DISPLAY
d=0
while true ; do
    [ -e "/tmp/.X$d-lock" -o -S "/tmp/.X11-unix/X$d" ] || break
    d=$(($d + 1))
done
defaultdisplay=":$d"
unset d

# Get current tty
tty_num=$(tty | grep -oE '[0-9]+$')
vtarg="vt$tty_num -keeptty"

$DIR/bin/xinit -- $DIR/bin/Xorg $defaultdisplay $vtarg \
               -configdir $DIR/share/X11/xorg.conf.d \
               -modulepath $DIR/lib/xorg/modules
#+END_SRC

In your guix user profile manifest:

#+BEGIN_SRC lisp
(define %packages-xorg
  (list
   "xorg-server"
   "xf86-video-amdgpu"
   "xf86-input-libinput"
   "xf86-input-wacom"
   "xinit"))

(concatenate-manifests
 (list (specifications->manifest
        (append %packages-xorg
                %packages-desktop-hlwm
                %packages-desktop-windowmaker
                %packages-desktop-wms-complementary
                %packages-desktop-complementary
                %packages-fonts
                %packages-complementary))
#+END_SRC

-- 
WBR, Boris Dekshteyn

Reply via email to