You are not logged in.

#1 2016-08-27 20:21:17

bobo
Member
Registered: 2016-08-27
Posts: 10

[SOLVED] .xinitrc doesn't work

I put:

setxkbmap -option terminate:ctrl_alt_bksp

It doesn't work.

Last edited by Head_on_a_Stick (2016-08-27 21:34:03)


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#2 2016-08-27 20:23:23

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

I put it in my .xinitrc, but it does not work, it comes back with icewm when I reboot.

Last edited by bobo (2016-08-27 20:24:06)


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#3 2016-08-27 20:32:47

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] .xinitrc doesn't work

I have merged your two threads as they are both about ~/.xinitrc

BunsenLabs does not read ~/.xinitrc if the usual (LightDM) login screen is used.

You will have to use a console login and `startx` to read that file during startup.

Alternatively, you can add your commands to ~/.xsession instead and then select "Default Xsession" as the desktop in the login screen

Offline

#4 2016-08-27 21:10:20

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

Head_on_a_Stick wrote:

I have merged your two threads as they are both about ~/.xinitrc

BunsenLabs does not read ~/.xinitrc if the usual (LightDM) login screen is used.

You will have to use a console login and `startx` to read that file during startup.

Head_on_a_Stick:
thanks for the prompt answer, I was trying to do that by changing the run-level number in /etc/inittab but, when i try to access it, it is blank. Please tell me how to do that, I hate display managers.

Last edited by bobo (2016-08-27 21:11:22)


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#5 2016-08-27 21:16:06

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

Should I uninstall lightdm? will that send me into the console when I reboot and then startx?


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#6 2016-08-27 21:19:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] .xinitrc doesn't work

bobo wrote:

Please tell me how to do that, I hate display managers.

Me too smile

sudo systemctl set-default multi-user.target

Offline

#7 2016-08-27 21:21:11

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

thanks, i will try it.


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#8 2016-08-27 21:26:09

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

thank you - It worked perfectly, I'm on jwm smile


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#9 2016-08-27 21:33:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] .xinitrc doesn't work

Wonderful smile

I have moved the thread to Basic Help & Support and marked it [SOLVED] (you can do this yourself next time by editing the title).

Offline

#10 2016-08-27 22:07:30

bobo
Member
Registered: 2016-08-27
Posts: 10

Re: [SOLVED] .xinitrc doesn't work

Will do.


simplicity and speed
IceWM - JWM - Ratpoison

Offline

#11 2016-08-28 08:40:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: [SOLVED] .xinitrc doesn't work

Head_on_a_Stick wrote:

Alternatively, you can add your commands to ~/.xsession instead and then select "Default Xsession" as the desktop in the login screen

I guess providing .xsession would require also starting openbox from there? .xsessionrc is another option for adding config.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#12 2016-08-28 10:53:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] .xinitrc doesn't work

johnraff wrote:

I guess providing .xsession would require also starting openbox from there?

The OP has decided to switch to jwm and has also added "exec jwm" to ~/.xinitrc

That information was contained in the title of the second thread and was lost in the merge, my apologies for that.
:8

.xsessionrc is another option for adding config.

The OP doesn't want to use a display manager so that file wouldn't be read.

Offline

#13 2016-08-29 02:02:10

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: [SOLVED] .xinitrc doesn't work

Head_on_a_Stick wrote:
johnraff wrote:

I guess providing .xsession would require also starting openbox from there?

The OP has decided to switch to jwm and has also added "exec jwm" to ~/.xinitrc

The use of .xinitrc is not advisable IMO, because it bypasses the Debian /etc/X11/Xsession.d files, and requires the user to manually call dbus and friends.

Yes, any window manager can be invoked by putting it in .xsession (no, I hadn't noticed that it was not to be openbox). If .xsession exists it will replace x-session-manager as the X startup script, but after sourcing Xsession.d/*.

I looked into this in 2012 "what startx actually does in Debian" but if any of that info is wrong or outdated would appreciate correction. smile

.xsessionrc is another option for adding config.

The OP doesn't want to use a display manager so that file wouldn't be read.

I think it would, in fact, as long as .xinitrc does not exist.

Last edited by johnraff (2016-08-29 02:03:12)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#14 2016-08-29 12:22:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] .xinitrc doesn't work

johnraff wrote:

The use of .xinitrc is not advisable IMO, because it bypasses the Debian /etc/X11/Xsession.d files, and requires the user to manually call dbus and friends.

Oh yes, I forgot about dbus  :8

@OP: if you want to take advantage of dbus (eg, for automounting with thunar/gvfs) then start your window manager like this:

exec dbus-launch --exit-with-session jwm

Or follow johnraff's fine advice.

Offline

#15 2016-08-30 02:16:25

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,657
Website

Re: [SOLVED] .xinitrc doesn't work

^There's a lot more than dbus of course that Debian will start up for you if the relevant packages have dropped files in /etc/X11/Xsession.d
Have a look at that directory to see what you might be missing out on (or have to do manually) by using .xinitrc. (Still recommend .xsession instead.)

Last edited by johnraff (2016-08-30 02:17:41)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB