unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to use exwm with tty login
@ 2025-01-08 18:30 bp25
  2025-01-08 20:42 ` Felix Lechner via
  0 siblings, 1 reply; 2+ messages in thread
From: bp25 @ 2025-01-08 18:30 UTC (permalink / raw)
  To: help-guix

Hello!

I chose exwm as the windows manager when I installed Guix. How can I
disable gdm as the login manager and use non-graphical login instead? If
I do C-M-F6 (say), then after login I have to start emacs manually, and
then starting exwm fails because "not running under X environment"...

Any help is much appreciated!

Thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to use exwm with tty login
  2025-01-08 18:30 How to use exwm with tty login bp25
@ 2025-01-08 20:42 ` Felix Lechner via
  0 siblings, 0 replies; 2+ messages in thread
From: Felix Lechner via @ 2025-01-08 20:42 UTC (permalink / raw)
  To: bp25; +Cc: help-guix

Hi bp25,

On Wed, Jan 08 2025, bp25@riseup.net wrote:

> How can I disable gdm as the login manager

I modify the Guix services [1] but there is probably an easier way in
the manual or in the cookbook.  Please note I worked off of
%base-services.

After login, I run the custom program below, which I named 'xinit' in my
home folder.  (Our official xinit executable should arguably be
patched.)  I configure xrandr in .xinitrc, further below, because I find
EXWM's randr support a bit flaky.

Then I start Emacs with EXWM configured. [2]

Kind regards
Felix

[1] https://codeberg.org/lechner/system-config/src/commit/4335818ba8da818f21810b5b402db51c77d3b344/host/lechner-desktop/operating-system.scm#L278-L279
[2] https://codeberg.org/lechner/emacs-config/src/commit/b53e65000bf60902dbb7c8705b9f22b08026f03a/init.el#L97-L154

* * *

#!/usr/bin/env -S guile --no-auto-compile -s
!#

(let* ((profile (string-append (getenv "HOME") "/.guix-profile"))
       (virtual-terminal (string-append "vt" (getenv "XDG_VTNR"))))
  (system* "xinit" "--"
           (string-append profile "/bin/Xorg")
           ":0"
           virtual-terminal "-keeptty"
           "-configdir" (string-append profile "/share/X11/xorg.conf.d")
           "-modulepath" (string-append profile "/lib/xorg/modules")))

* * *

xrandr --output DP-5 --auto --primary
xrandr --output DP-4 --auto --left-of DP-5 --rotate left
xterm
#emacs
#emacsclient -c -a ""


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-08 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 18:30 How to use exwm with tty login bp25
2025-01-08 20:42 ` Felix Lechner via

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).