You are not logged in.

#1 2019-03-09 12:14:55

burakcosk
Member
Registered: 2019-02-23
Posts: 3

[Solved]i3-sensible-terminal opens urxvt but i3 starts with 2 xterm

Hello,

First post here, could't find the answer online.

When I first start i3 it starts with 2 xterm terminal emulators. Next times when I use $mod+enter it opens up urxvt and loads my configs from

~/.Xresources

correctly.

If I run manually

i3-sensible-terminal

it also opens up urxvt as intended. couldn't figure out what happens.

echo $TERMINAL

always returns empty, both in urxvt and xterm

Last edited by burakcosk (2019-03-09 13:39:22)

Offline

#2 2019-03-09 12:47:46

mmdamin
Member
From: Iran
Registered: 2019-02-19
Posts: 205
Website

Re: [Solved]i3-sensible-terminal opens urxvt but i3 starts with 2 xterm

burakcosk wrote:

Hello,

First post here, could't find the answer online.

When I first start i3 it starts with 2 xterm terminal emulators. Next times when I use $mod+enter it opens up urxvt and loads my configs from

~/.Xresources

correctly.

If I run manually

i3-sensible-terminal

it also opens up urxvt as intended. couldn't figure out what happens.

echo $TERMINAL

always returns empty, both in urxvt and xterm

if you set your $TERMINAL, try to logout and login again, if still it's not working, add this to ~/.profile instead of ~/.Xresources:

export TERMINAL="urxvt"

I do that to set terminal to termite in i3. in my deepin, it uses x-terminal-emulator which is the default terminal emulator that setted by your Desktop Environment. I don't know exactly how to set terminal for x-terminal-emulator, but I can change it from settings of my Desktop Environment.
also check out your ~/.config/i3/config file, may it sets to start 'xterm' instead of 'i3-sensible-terminal'.

EDIT: by default, i3-sensible-terminal should open urxvt as of this script:

───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /usr/bin/i3-sensible-terminal
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ #!/bin/sh
   2   │ #
   3   │ # This code is released in public domain by Han Boetes <han@mijncomputer.nl>
   4   │ #
   5   │ # This script tries to exec a terminal emulator by trying some known terminal
   6   │ # emulators.
   7   │ #
   8   │ # We welcome patches that add distribution-specific mechanisms to find the
   9   │ # preferred terminal emulator. On Debian, there is the x-terminal-emulator
  10   │ # symlink for example.
  11   │ for terminal in "$TERMINAL" x-terminal-emulator urxvt rxvt termit terminator Eterm aterm uxterm xterm gnome-terminal
       │ roxterm xfce4-terminal termite lxterminal mate-terminal terminology st qterminal lilyterm tilix terminix konsole kitty guake tilda alacritty hyper; do
  12   │     if command -v "$terminal" > /dev/null 2>&1; then
  13   │         exec "$terminal" "$@"
  14   │     fi
  15   │ done
  16   │ 
  17   │ i3-nagbar -m 'i3-sensible-terminal could not find a terminal emulator. Please install one.'
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Last edited by mmdamin (2019-03-09 13:29:57)

Offline

#3 2019-03-09 13:15:05

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

Re: [Solved]i3-sensible-terminal opens urxvt but i3 starts with 2 xterm

How do you start X11 and i3?
If the answer is "startx" (or "xinit"), review your xinitrc.

Online

#4 2019-03-09 13:38:38

burakcosk
Member
Registered: 2019-02-23
Posts: 3

Re: [Solved]i3-sensible-terminal opens urxvt but i3 starts with 2 xterm

I had following lines in my xinitrc

xterm -geometry 80x50+494+51
xterm -geometry 80x50+494-0

Removing those caused no terminals to open at startup.

And just adding following to my .config/i3/config opened up 2 urxvt as I wanted.

exec i3-sensible-terminal 
exec i3-sensible-terminal

Thanks guys

Offline

Board footer

Powered by FluxBB