You are not logged in.

#1 2022-03-02 12:13:39

kosmos890
Member
Registered: 2022-03-02
Posts: 5

[SOLVED]Urxvt terminal window closes automatically

I have BunsenLabs 10.5 lithium
When I use urxvt, it closes unintentionally.

xsession-errors has this line :

 ** (x-terminal-emulator:10732): WARNING **: 12:50:20.079: Binding '<Control>a' failed!                                                                                                   
Unable to bind hide_window key, another instance/window has it.

I think it has to do with my problem.
How will I fix it?

Thanks

Last edited by kosmos890 (2022-03-11 19:28:29)

Offline

#2 2022-03-03 10:45:28

sleekmason
zoom
Registered: 2018-05-22
Posts: 873
Website

Re: [SOLVED]Urxvt terminal window closes automatically

Ctrl a is used by thunar to 'select all'.  Guessing you had thunar open when opening x-terminal-emulator? The message in .xsession-errors doesn't say much, and may not matter in the least.

Anyway, need more info, starting with posting your .Xresources which contains the lines for urxvt in Bunsen Labs.

Also, what do you mean by closes unintentionally?  When running a script? when updating? typing? Every bit of info helps.  Have you tried simply updating rxvt-unicode? Is your system up to date?

Offline

#3 2022-03-03 11:24:07

kosmos890
Member
Registered: 2022-03-02
Posts: 5

Re: [SOLVED]Urxvt terminal window closes automatically

Thanks for your reply sleekmason.
I recently installed Bunsenlabs on my pc, it is a new fresh installation.
My system is up to date.
rxvt-unicode is already the newest version (9.22-6+deb10u1)
Urxvt closes when Ι type.
Thunar is closed and there is no other window open.
My .Xresources

! font settings --------------------------------------------------------------

Xft.autohint: true
Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintslight
!Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault


! urxvt -------------------------------------------

! "monospace" is an alias defined in ~/.config/fontconfig/fonts.conf
URxvt.font: xft:monospace:size=10
URxvt.boldFont: xft:monospace:bold:size=10
! Add fallback fonts as laid out in `man 1 urxvt` under "font:" in the RESOURCES section

URxvt.letterSpace: -1
!URxvt.lineSpace: 1
! The letterSpace and lineSpace settings are highly dependent on the font(s) configured above
! and should be changed or removed as necessary.

! Window size and position
!URxvt*geometry: 60x22+50+100
! Window size, let the Window Manager position it
URxvt.geometry: 80x24

URxvt.scrollstyle: plain
URxvt.scrollBar: true
URxvt.scrollBar_right: true
URxvt.iconFile: /usr/share/icons/Papirus/48x48/apps/urxvt.svg
!URxvt.iconFile: /usr/share/icons/Paper/48x48/apps/utilities-terminal.png
!URxvt.iconFile: /usr/share/icons/Adwaita/48x48/apps/utilities-terminal.png
URxvt.cursorBlink: true
URxvt.fading: 20

! Lithium colours
URxvt.background: [95]#22373F
URxvt.foreground: #C6D5E5
! Grey theming
!URxvt*background: #cecece
!URxvt*foreground: #101010
! Terminator Beam colours
!URxvt.background: [90]#082B4A
!URxvt.foreground: #ADD8E6

! scrollback buffer lines - 65535 is max (64 is default)
URxvt.saveLines: 5000

! True Transparency, opacity percentage set in square brackets before URxvt.background colour
URxvt.depth: 32

! Clickble URLs
URxvt.perl-ext-common: default,matcher
URxvt.url-launcher: /usr/bin/x-www-browser
URxvt.matcher.button: 3

! Custom colourscheme, see http://terminal.sexy/ for more ideas.
! Commented out colors are from the original Bunsenlabs Hydrogen terminal theme.

! Black
! URxvt.color0: #000000
! URxvt.color8: #555753
URxvt.color0: #555753
URxvt.color8: #babdb6

! Red
! URxvt.color1: #cc0000
! URxvt.color9: #ef2929
URxvt.color1: #b44444
URxvt.color9: #d98f93

! Green
! URxvt.color2: #4e9a06
! URxvt.color10: #8ae234
URxvt.color2: #5ecb8c
URxvt.color10: #13b9b9

! Yellow
! URxvt.color3: #c4a000
! URxvt.color11: #fce94f
URxvt.color3: #d9c964
URxvt.color11: #d9cf8f

! Blue
! URxvt.color4: #3465a4
! URxvt.color12: #729fcf
URxvt.color4: #3d6aac
URxvt.color12: #8f99d9

! Magenta
! URxvt.color5: #75507b
! URxvt.color13: #ad7fa8
URxvt.color5: #9a64d9
URxvt.color13: #b08fd9

!Cyan
! URxvt.color6: #06989a
! URxvt.color14: #34e2e2
URxvt.color6: #64d9d5
URxvt.color14: #8fd9d5

! White
! URxvt.color7: #d3d7cf
! URxvt.color15: #eeeeec
URxvt.color7: #d3d7cf
URxvt.color15: #c5c5c5

! Colourised man pages, also changes scheme for htop(1) and others.
!
! Headings:
! URxvt.colorBD: #cf6171
!
! Underline:
! URxvt.colorUL: #4186be
!
! Italicised:
! URxvt.colorIT: #71bebe

Offline

#4 2022-03-03 11:44:54

sleekmason
zoom
Registered: 2018-05-22
Posts: 873
Website

Re: [SOLVED]Urxvt terminal window closes automatically

Huh, Wouldn't/shouldn't be .xresources. . .

closes when you type the first keyboard input? Hmm. Things to try.

Open urxvt through another terminal (lxterminal) and see if there is output in lxterminal after the fail. Maybe we get a good clue.

try killing the compositor (compton or picom). No, I don't think this is it either, but I've had some odd interactions there before.

try creating an .Xdefaults to bypass your regular .Xresources.  urxvt should? read .Xdefaults first . . .  You can use the settings in your current .Xresources file, or make the .Xdefaults file and add the below to test, as the below code should work without difficulties.

!--- Window Settings
Xcursor.size:11
URxvt.buffered:             true
URxvt.geometry:             85x30

!--- Font Size and Controls
URxvt*.font:  xft:DejaVu Sans Mono:autohint=true:pixelsize=12
URxvt.perl-lib:                     ~/.urxvt/ext
URxvt.keysym.C-Up:     font-size:increase
URxvt.keysym.C-Down:   font-size:decrease
URxvt.keysym.C-S-Up:   font-size:incglobal
URxvt.keysym.C-S-Down: font-size:decglobal
URxvt.keysym.C-equal:  font-size:reset
URxvt.keysym.C-slash:  font-size:show
!URxvt.perl-ext-common: font-size,tabbed,matcher
URxvt.perl-ext-common: font-size,matcher

!--- For Tabs
URxvt.tabbed.reopen-on-close: yes
URxvt.keysym.Control-Shift-Left: perl:tabbedex:move_tab_left
URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right
URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab

!---Make url links clickable
URxvt.url-launcher: /usr/bin/firefox-esr
URxvt.matcher.button: 1
URxvt.matcher.rend.0: Uline Bold fg5

!--- Scrolling
URxvt*.scrollTtyOutput:     false
URxvt*.scrollWithBuffer:    false
URxvt*.scrollTtyKeypress:   true
URxvt.secondaryScroll:      true
URxvt*scrollstyle:          plain
URxvt*saveLines:            10000
URxvt.scrollBar_right:      true
URxvt.scrollBar:            false
URxvt.mapAlert:             true

!--- Line spacing
!  URxvt.lineSpace: 12

!---Transparency and effect settings
! URxvt*inheritPixmap:        true
! URxvt*transparent:          true
!---With Compositor enabled:
URxvt.depth: 32
URxvt.background: rgba:0000/0000/0000/bbbb


!---URxvt*shading: 0 to 99 darkens, 101 to 200 lightens
! URxvt*shading:              20
URxvt.blurRadius:           40
URxvt.fading:               0
! URxvt.tintColor:            #ffffff

!--- Tabbing Menu colors

URxvt.tabbed.tabbar-bg:     0
URxvt.tabbed.tabbar-fg:     6
URxvt.tabbed.tab-bg:        0
URxvt.tabbed.tab-fg:        5

!--- Colors

URxvt.cursorColor:          #06D5FF
URxvt.pointerColor:         #15ACCC
! URxvt.background:         #000000
URxvt.foreground:           #CEFAF9
URxvt.underlineColor:       #DE9D00
URxvt.throughColor:         #57AABA
URxvt.highlightColor:       #34BEBC
URxvt.color0:               #000000
URxvt.color1:               #15ACCC
URxvt.color2:               #15ACCC
URxvt.color3:               #15ACCC
URxvt.color4:               #06D5FF
URxvt.color5:               #15ACCC
URxvt.color6:               #15ACCC
URxvt.color7:               #CEFAF9
URxvt.color8:               #15ACCC
URxvt.color9:               #F5F500

!--prompt(name)
URxvt.color10:              #74EDFA

!--urls
URxvt.color11:              #F439A8

!--folder name
URxvt.color12:              #10C610

URxvt.color13:              #06D5FF

!--uptime top green
URxvt.color14:              #14AA03

!--menuconfig first letter
URxvt.color15:              #023C48

Offline

#5 2022-03-03 19:27:56

kosmos890
Member
Registered: 2022-03-02
Posts: 5

Re: [SOLVED]Urxvt terminal window closes automatically

rxvt closes when I type Enter to execute a command.

I removed .Xresources, I create .Xdefaults and I add your code.
Is this what you mean?

I will test if the problem persists and I will post.
Your code defines a new theme, I would like to keep the lithium theme (solarized) but it doesn't matter.

In my home folder there is a file named .Xresources.usersetup~.

km@u100 ~ $ diff .Xresources .Xresources.20220219-190211.usersetup~ 
32c32
< URxvt.iconFile: /usr/share/icons/Papirus/48x48/apps/urxvt.svg
---
> !URxvt.iconFile: /usr/share/icons/Papirus/48x48/apps/urxvt.svg
34c34
< !URxvt.iconFile: /usr/share/icons/Adwaita/48x48/apps/utilities-terminal.png
---
> URxvt.iconFile: /usr/share/icons/Adwaita/48x48/apps/utilities-terminal.png

In my terminal I have vim key bindings (In .bashrc : set -o vi) and I use a : to indicate Normal mode in my prompt
My .inputrc

set editing-mode vi
set keymap vi-command
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[33;1m\2\1\e[0m\2
set vi-cmd-mode-string \1\e[33;1m\: \1\e[0m\2

Does these settings affect my problem?

Offline

#6 2022-03-03 20:59:38

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,513

Re: [SOLVED]Urxvt terminal window closes automatically

Error " Binding '<Control>a' failed! Unable to bind hide_window key, another instance/window has it.", has I often seen when Terminator is installed and has that keybinding...

Do you use terminator? Test remove it else. Is it URxvt that pops up from command "x-terminal-emulator"?

File .Xresources.usersetup~., is a backup of older version of .Xresources, created when script bl-user-setup, copied a new configurationfile from updated package.
I guess that you installed the machin from 32 bit iso on 19/2. With 32 bit installation, URxvt is default terminal. You could then when running the BL-Welcome script, press Enter in the terminal? So, something happened later.

Have you tested log in as other user and run command in URxvt-terminal? If that works, it is something with your profile.


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Offline

#7 2022-03-03 23:17:43

sleekmason
zoom
Registered: 2018-05-22
Posts: 873
Website

Re: [SOLVED]Urxvt terminal window closes automatically

kosmos890 wrote:

I removed .Xresources, I create .Xdefaults and I add your code.
Is this what you mean?

yes, just a known working copy. nothing to keep.

Offline

#8 2022-03-06 10:56:08

kosmos890
Member
Registered: 2022-03-02
Posts: 5

Re: [SOLVED]Urxvt terminal window closes automatically

@rbh
URxvt is my default "x-terminal-emulator" and I don't have terminator installed.(WIN + T opens URxvt)
Then I tried terminator and it seems to work. I might use terminator as default terminal.
My laptop is 32 bit. You guessed right.
I ran bl-welcome script and it upgraded the following packages libexpat1, libexpat1-dev, libsas12-2, libsas12-modules, libsas12-modules-db.

Terminator has the option Profiles>Command When command exits : Hold the terminal open.
Is there the same option in URxvt?

Offline

#9 2022-03-06 12:22:24

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,513

Re: [SOLVED]Urxvt terminal window closes automatically

kosmos890 wrote:

I might use terminator as default terminal.

Default terminal for 64bit Lithium is lxterminal.

Terminator has the option Profiles>Command When command exits : Hold the terminal open.
Is there the same option in URxvt?

I did not have the slightest clue,,, so, i checked the manual:

$ man rxvt | grep hold
  -hold|+hold
           Turn on/off hold window after exit support. If enabled, urxvt will not immediately destroy its window when the program executed within it exits. Instead, it will wait till it
           is being killed or closed by the user; resource hold.
       hold: boolean
           Turn on/off hold window after exit support. If enabled, urxvt will not immediately destroy its window when the program executed within it exits. Instead, it will wait till it
           Colon-separated list of additional directories that hold extension scripts. When looking for perl extensions, urxvt will first look in these directories, then in
       To temporarily override mouse reporting, for either the scrollbar or the normal text selection/insertion, hold either the Shift or the Meta (Alt) key while performing the desired
           Start by pressing and holding both "Control" and "Shift", then enter hex-digits (between one and six). Releasing "Control" and "Shift" will commit the character as if it were
           typed directly. While holding down "Control" and "Shift" you can also enter multiple characters by pressing "Space", which will commit the current character and lets you
           You enter this mode by holding down "Control" and "Shift" together, then pressing and holding the left mouse button and moving around. The unicode hex code(s) (it might be a

// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Offline

#10 2022-03-11 19:27:13

kosmos890
Member
Registered: 2022-03-02
Posts: 5

Re: [SOLVED]Urxvt terminal window closes automatically

I added the line "URxvt.hold: true" to .Xresources and my problem was solved.

Offline

Board footer

Powered by FluxBB