You are not logged in.

#1 2021-04-22 01:43:03

gmariz
Member
Registered: 2021-03-21
Posts: 9

how do i autostart nitrogen?

hi!

So i've been using dwm for 2-3 weeks but i have not gone through the trouble of adding a wallpaper as i didn't have time for doing so.
Then today i came to the decision i would try to do it but i've tryed adding
exec nitrogen --restore &
to the /etc/lightdm/Xsession file but it hasn't worked if anyone could try helping me i would be very glad!


Hallo!

Offline

#2 2021-04-22 05:50:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: how do i autostart nitrogen?

See https://wiki.archlinux.org/index.php/Xprofile but note that neither 'exec' nor '&' are needed for your nitrogen command.

If you only want the command to be run for the dwm desktop then copy /usr/share/xsessions/dwm.desktop to /usr/share/xsessions/dwm-session.desktop (or so) and change the "Exec=" line to call a custom startup script (which must be executable and in your user's PATH), for example:

Exec=dwm-session

Then create /usr/local/bin/dwm-session:

nitrogen --restore
dwm

Jin, Jîyan, Azadî

Offline

#3 2021-04-22 10:30:10

gmariz
Member
Registered: 2021-03-21
Posts: 9

Re: how do i autostart nitrogen?

Hey so i’ve done that and it starts nitrogen but sadly it doesn’t start dwm
Should i invert the order on the usr/local/bin/dwm to:

dwm
Nitrogen —restore

So that it starts dwm before nitrogen?


Hallo!

Offline

#4 2021-04-22 10:48:28

gmariz
Member
Registered: 2021-03-21
Posts: 9

Re: how do i autostart nitrogen?

gmariz wrote:

Hey so i’ve done that and it starts nitrogen but sadly it doesn’t start dwm
Should i invert the order on the usr/local/bin/dwm to:

dwm
Nitrogen —restore

So that it starts dwm before nitrogen?

Hey so i have done that but now it doesn’t start not even nitrogen sad


Hallo!

Offline

#5 2021-04-22 18:11:37

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: how do i autostart nitrogen?

Did you revert your modifications to /etc/lightdm/Xsession? I've just tested my suggestions with GDM and they do work for my Arch system. Check the journal for clues.


Jin, Jîyan, Azadî

Offline

#6 2021-04-23 10:07:45

gmariz
Member
Registered: 2021-03-21
Posts: 9

Re: how do i autostart nitrogen?

hey so i have reverted the changes in lightdm but t still doesnt work it now actually doesn't boot and after gets me back on the login screen.
do i need to run make clean install so it works?


Hallo!

Offline

#7 2021-04-24 17:41:23

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: how do i autostart nitrogen?

Please post all of the relevant configuration files in full along with the contents of the journal from a failed boot.

gmariz wrote:

do i need to run make clean install so it works?

So you didn't install dwm with a PKGBUILD then? From where did you obtain the dwm session file?


Jin, Jîyan, Azadî

Offline

#8 2021-04-24 19:24:10

gmariz
Member
Registered: 2021-03-21
Posts: 9

Re: how do i autostart nitrogen?

if you mean how i installed dwm i installed dwm through the official git repo and then running
make
make install


Hallo!

Offline

Board footer

Powered by FluxBB