unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Boris A. Dekshteyn" <boris.dekshteyn@gmail.com>
To: help-guix@gnu.org
Subject: Re: simple config with just startx not working for me
Date: Tue, 24 Aug 2021 20:14:39 +1200	[thread overview]
Message-ID: <87o89njm34.fsf@enceladus.provocation.me> (raw)
In-Reply-To: <87zgtasdmq.fsf@softland> (Andreas Reuleaux's message of "Sat, 21 Aug 2021 22:15:41 +0100")

Andreas Reuleaux <rx@a-rx.info> 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


  parent reply	other threads:[~2021-08-24  8:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 21:15 simple config with just startx not working for me Andreas Reuleaux
2021-08-21 22:17 ` Vagrant Cascadian
2021-08-21 23:17   ` Andreas Reuleaux
2021-08-22  5:55     ` 宋文武
2021-08-22 12:57       ` Andreas Reuleaux
2021-08-22 14:01       ` Andreas Reuleaux
2021-08-24  8:14 ` Boris A. Dekshteyn [this message]
2021-08-24  8:33   ` Boris A. Dekshteyn
2021-08-24 11:27     ` Andreas Reuleaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o89njm34.fsf@enceladus.provocation.me \
    --to=boris.dekshteyn@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).