You are not logged in.

#1 2022-05-31 22:14:14

matidfk
Member
Registered: 2022-04-17
Posts: 7

run .xinitrc when logging in with ly?

I used to have my autostart programs in .xinitrc, however ive wanted to experiment with different WMs, so i installed ly that lets me choose a WM while logging in. Problem is, that now, .xinitrc doesnt get run when I log in.
I thought of just executing it from my bspwmrc (which does get run when using the ), but then that could create an inifinite loop if i choose to start it with startx. Is there something im missing?

Offline

#2 2022-05-31 22:33:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: run .xinitrc when logging in with ly?

From the ly github page:

If your .xinitrc doesn't work make sure it is executable and includes a shebang.

https://github.com/fairyglade/ly#xinitrc

Offline

#3 2022-05-31 22:41:59

matidfk
Member
Registered: 2022-04-17
Posts: 7

Re: run .xinitrc when logging in with ly?

I have put just
#!/bin/sh
echo test >> /home/me/test.txt

however nothing shows up. Ly gives me three options: shell, xinitrc, bspwm. I'm using the bspwm option. I have found however that .xsession and .xprofile does get run

Offline

#4 2022-05-31 22:45:41

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: run .xinitrc when logging in with ly?

Is .xinitrc set as executable?

Offline

#5 2022-06-01 05:26:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,653

Re: run .xinitrc when logging in with ly?

Ly gives me three options: shell, xinitrc, bspwm. I'm using the bspwm option.

.xinitrc doesnt get run when I log in.

Ponder for about 5 minutes over that.

I have found however that .xsession and .xprofile does get run

They're typically sourced by DMs and the way to go about your situation is to source them in your xinitrc and move the shared stuff (what you want to be executed by some DM as well as by xinit) there (eg. notably NOT the final "exec somewm" line)

Offline

Board footer

Powered by FluxBB