Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Which terminal

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#21 Post by pawRoot »

Code: Select all

debian@debian:~$ xrdb ~/.Xdefaults
/home/debian/.Xdefaults:48:49: warning: backslash and newline separated by space
 Shift Ctrl<Key>V: insert-selection(CLIPBOARD) \n\
                                                  
/home/debian/.Xdefaults:48:49: warning: backslash-newline at end of file
/home/debian/.Xdefaults:49:47: warning: backslash and newline separated by space
 Shift Ctrl<Key>V: insert-selection(PRIMARY) \n\
                                                
/home/debian/.Xdefaults:50:35: warning: backslash and newline separated by space
 Shift<Btn1Down>: select-start() \n\
                                    
/home/debian/.Xdefaults:51:38: warning: backslash and newline separated by space
 Shift<Btn1Motion>: select-extend() \n\

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#22 Post by Head_on_a_Stick »

pawRoot wrote:

Code: Select all

XTerm*VT100.Translations: #override \
Shift Ctrl<Key>V: insert-selection(CLIPBOARD) \n\ 
Shift Ctrl<Key>V: insert-selection(PRIMARY) \n\ 
Shift<Btn1Down>: select-start() \n\ 
Shift<Btn1Motion>: select-extend() \n\ 
Shift<Btn1Up>: select-end(CLIPBOARD) \n\
Remove _all_ of those lines, that will shut it up.

No idea what they are supposed to do but you've clearly got it wrong.
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#23 Post by pawRoot »

Yeah i will just get used to the other method 8)

Thanks anyway

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Which terminal

#24 Post by bw123 »

Head_on_a_Stick wrote:
bw123 wrote: All I use is a very simple ~.Xresources for a couple of things. This file is read by default by debian when X starts
Not if there is a file at ~/.xinitrc ;)
Are you telling me that pawroot figured out how to roll an xinitrc, or that i3 left out a simple xrdb -merge from it?
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#25 Post by Head_on_a_Stick »

bw123 wrote:Are you telling me that pawroot figured out how to roll an xinitrc, or that i3 left out a simple xrdb -merge from it?
Nope :D

I'm just telling you that if ~/.xinitrc exists then the `startx` command will _not_ read ~/.Xresources unless an xrdb -merge line is added to ~/.xinitrc

It's a subtle point but an important one.
deadbang

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Which terminal

#26 Post by bw123 »

Head_on_a_Stick wrote:
bw123 wrote:Are you telling me that pawroot figured out how to roll an xinitrc, or that i3 left out a simple xrdb -merge from it?
Nope :D

I'm just telling you that if ~/.xinitrc exists then the `startx` command will _not_ read ~/.Xresources unless an xrdb -merge line is added to ~/.xinitrc

It's a subtle point but an important one.
Since you don't say for sure there is a ~.xinitrc I really don't see how it is an important point? Debian by default sets X up to use ~/.Xresources if found, so if a wm or other pkg didn't include it as a default setup I would consider that a bug.

Sorry to get off-topic, but telling the user to switch to Xdefaults instead of the default just seemed a silly suggestion to me.
resigned by AI ChatGPT

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#27 Post by pawRoot »

Made a restart and all settings gone.
Could it be because i tried to make a .xinitrc file which execs openbox?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#28 Post by Head_on_a_Stick »

bw123 wrote:Debian by default sets X up to use ~/.Xresources if found
Not if ~/.xinitrc exists.

If ~/.xinitrc exists then no files in /etc/X11/Xsession.d/ are read at all and the only configuration carried out is that specified in ~/.xinitrc

Detailed breakdown here: https://forums.bunsenlabs.org/viewtopic.php?id=3774

This is distinct from the situation is which ~/.xsession is used to specify the startup programs, as is the recommendation in startx(1):
man startx wrote:Note that in the Debian system, what many people traditionally put in the .xinitrc file should go in .xsession instead; this permits the same X environment to be presented whether startx, xdm, or xinit is used to start the X session. All discussion of the .xinitrc file in the xinit(1) manual page applies equally well to .xsession. Keep in mind that .xinitrc is used only by xinit(1) and completely ignored by xdm(1).
This is by design — if the user wants "total control" then ~/.xinitrc should be used, otherwise ~/.xsession offers a degree of automation and consistency that some users prefer.
bw123 wrote:telling the user to switch to Xdefaults instead of the default just seemed a silly suggestion to me
Perhaps but it makes no practical difference to the problem in hand, either can be used.

I prefer ~/.Xdefaults because with ~/.Xresources `xrdb` must be used to effect any changes.
pawRoot wrote: because i tried to make a .xinitrc file which execs openbox?
Ha!

Please post the ****ing file :roll:
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#29 Post by pawRoot »

It was just a .xinitrc file in ~/ with this inside:
exec openbox-session
But openbox didn't auto start anyway.

Oh and my f*** sound is suddenly gone aswell, now only HDMI works and the sound is choppy as hell.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#30 Post by Head_on_a_Stick »

Try

Code: Select all

rm ~/.xinitrc
startx
Does everything work now?
deadbang

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Which terminal

#31 Post by bw123 »

bw123 wrote:telling the user to switch to Xdefaults instead of the default just seemed a silly suggestion to me
Perhaps but it makes no practical difference to the problem in hand, either can be used.
It's an interesting off-topic and i love to how how things work.
have you run into anything like this on debian specifically? Or can you report that it is not an issue?
https://wiki.archlinux.org/index.php/X_resources
* The older ~/.Xdefaults file is read when an X11 program starts, but only if xrdb has not been used in the current session. [1]
Last edited by bw123 on 2018-01-12 19:28, edited 1 time in total.
resigned by AI ChatGPT

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#32 Post by pawRoot »

Head_on_a_Stick wrote:Try

Code: Select all

rm ~/.xinitrc
startx
Does everything work now?
I already did that, restarted and no sound, and the xterm settings gone aswell.

just wtf...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#33 Post by Head_on_a_Stick »

bw123 wrote:have you run into anything like this on debian specifically? Or can you report that it is not an issue?
https://wiki.archlinux.org/index.php/X_resources
* The older ~/.Xdefaults file is read when an X11 program starts, but only if xrdb has not been used in the current session. [1]
As I mentioned before, if ~/.Xdefaults is used then ~/.Xresources must be deleted to prevent X resources being pre-loaded and stopping xterm from reading ~/.Xdefaults automatically.

Once ~/.Xdefaults is in place then `xrdb` should never be needed and `xrdb` is only run at startup if ~/.Xresources exists.
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#34 Post by pawRoot »

Head_on_a_Stick wrote:
bw123 wrote:have you run into anything like this on debian specifically? Or can you report that it is not an issue?
https://wiki.archlinux.org/index.php/X_resources
* The older ~/.Xdefaults file is read when an X11 program starts, but only if xrdb has not been used in the current session. [1]
As I mentioned before, if ~/.Xdefaults is used then ~/.Xresources must be deleted to prevent X resources being pre-loaded and stopping xterm from reading ~/.Xdefaults automatically.

Once ~/.Xdefaults is in place then `xrdb` should never be needed and `xrdb` is only run at startup if ~/.Xresources exists.
But this is exactly what i did...

Removed Xresources, created Xdefaults
"Notified" xrdb.
And i didn't use any xrdb command since then.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Which terminal

#35 Post by bw123 »

Head_on_a_Stick wrote: As I mentioned before, if ~/.Xdefaults is used then ~/.Xresources must be deleted to prevent X resources being pre-loaded and stopping xterm from reading ~/.Xdefaults automatically.

Once ~/.Xdefaults is in place then `xrdb` should never be needed and `xrdb` is only run at startup if ~/.Xresources exists.
So changing to Xdefaults after running xrdb will not work without restarting the xserver? That would be a subtle point to mention in the advice.
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#36 Post by Head_on_a_Stick »

pawRoot wrote:I already did that, restarted and no sound, and the xterm settings gone aswell
If there is no ~/.xinitrc or ~/.xsession then the `startx` command will run x-session-manager

Try

Code: Select all

# update-alternatives --config x-session-manager
Make sure that is set to "openbox-session" and check ~/.config/openbox/autostart for your autostart programs.

Once the desktop is started, use this command to check the X resources that have been loaded

Code: Select all

appres
(As I said earlier)

@bw123, good point :D

@OP: log out & back in again.
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#37 Post by pawRoot »

Ok i think i give up and go back to Termite this is retarded.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Which terminal

#38 Post by Head_on_a_Stick »

Well that'll learn me, I suppose.

@bw123, maybe you were right about ~/.Xdefaults, I seem to have confused the poor little OP :lol:
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Which terminal

#39 Post by pawRoot »

Nah it's just too big mess for me, in Termite i edited config once and never had any problems.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Which terminal

#40 Post by bw123 »

Head_on_a_Stick wrote:Well that'll learn me, I suppose.

@bw123, maybe you were right about ~/.Xdefaults, I seem to have confused the poor little OP :lol:
Don't worry about it, one of us learned something anyway. But one more question...

If xrdb is used like pawRoot to merge the .Xdefaults file, does it still get read when an X program starts? In other words, can you still change the resources on the running xserver?

The quote from the arch wiki suggests, No.
resigned by AI ChatGPT

Post Reply