unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Trying to understand why GUIX isn't reading configuration file?
@ 2023-08-13 13:20 Patrick Pippen
  2023-08-14 10:02 ` 宋文武
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Pippen @ 2023-08-13 13:20 UTC (permalink / raw)
  To: help-guix

Previously what I thought was a gdm issue, upon further investigation I
believe this to be a guix issue or my lack of understanding guix way of
doing things.
My current issue is after installing guix with a guided installation. I
preceded to install bspwm as a user, what is happening is
I created a .xsession file and chmod +x ~/.xsession with the following
content:

sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
polybar -c $HOME/.config/polybar/config &
exec bspwm -c $HOME/.config/bspwm/bspwmrc

At first I've tried: exec bspwm
And it still doesn't work.

The issue that I'm not understanding is the bspwmrc file isn't being read
after logging in so I have to open a terminal and do this.

source $HOME/.config/bspwm/bspwmrc

Looking at my config.scm file, I've noticed that services-type-desktop only
shows XFCE. How can I get bspwm added to this file?
Or is there a way to get bspmwmrc file read automatically?

At the login screen, although XFCE and BSPWM are both installed there is
only a login prompt. To run XFCE I have to remove the ~/.xsession file.
XFCE was installed during installation of GUIX, after install as regular
user I install BSPWM.
-- 
www.pippenbuyshouses.com

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

* Re: Trying to understand why GUIX isn't reading configuration file?
  2023-08-13 13:20 Trying to understand why GUIX isn't reading configuration file? Patrick Pippen
@ 2023-08-14 10:02 ` 宋文武
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 @ 2023-08-14 10:02 UTC (permalink / raw)
  To: Patrick Pippen; +Cc: help-guix

Patrick Pippen <plpippen4@gmail.com> writes:

> Previously what I thought was a gdm issue, upon further investigation I
> believe this to be a guix issue or my lack of understanding guix way of
> doing things.
> My current issue is after installing guix with a guided installation. I
> preceded to install bspwm as a user, what is happening is
> I created a .xsession file and chmod +x ~/.xsession with the following
> content:
>
> sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
> polybar -c $HOME/.config/polybar/config &
> exec bspwm -c $HOME/.config/bspwm/bspwmrc

make sure it start with a shebang line, which should be:

#!/bin/sh
sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
polybar -c $HOME/.config/polybar/config &
exec bspwm -c $HOME/.config/bspwm/bspwmrc

>
> At first I've tried: exec bspwm
> And it still doesn't work.
>
> The issue that I'm not understanding is the bspwmrc file isn't being read
> after logging in so I have to open a terminal and do this.
>
> source $HOME/.config/bspwm/bspwmrc
>
> Looking at my config.scm file, I've noticed that services-type-desktop only
> shows XFCE. How can I get bspwm added to this file?
> Or is there a way to get bspmwmrc file read automatically?

I believe 'exec bspwm' will read bspwmrc from the right location , that
file is for bspwm not for shell (to be sourced).

>
> At the login screen, although XFCE and BSPWM are both installed there is
> only a login prompt. To run XFCE I have to remove the ~/.xsession file.
> XFCE was installed during installation of GUIX, after install as regular
> user I install BSPWM.

Okay, bspwm does have a share/xsessions/bspwm.desktop file, so if you
put it in the 'packages' field of the 'operating-system', it should
be available in the gdm login manager.

To allow selected xfce to run, use 'exec "$@"' in ~/.xsession instead of
'exec bspwm'.


Hope this will be helpful!


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

end of thread, other threads:[~2023-08-14 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-13 13:20 Trying to understand why GUIX isn't reading configuration file? Patrick Pippen
2023-08-14 10:02 ` 宋文武

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