Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Default Freedesktop terminal in i3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 78

PostPosted: Fri Jan 19, 2018 5:39 pm    Post subject: Default Freedesktop terminal in i3 Reply with quote

Hi all -

I use i3 wm and have managed to set it up so that if I click on things like "Show File in File Browser" from an app like atom or use xdg-open, Midnight Commander is the default browser. What I can't seem to do is figure out how to get it to use urxvt as the terminal instead of xterm. Any thoughts or suggestions? I have tried TERMINAL=urxvt xdg-open ~ and TERM=urxvt xdg-open. Everything I google seems to have non-answers, but a lot of pages where how to do this is debated. Anyone know how this is actually done?

Thanks!

****For now, I just removed xterm (necer use it) and ln -s /usr/bin/urxvt /usr/bin/xterm - a workable hack, but I'd still like to know if there is a "real" way to do this.
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 829

PostPosted: Fri Jan 19, 2018 9:09 pm    Post subject: Reply with quote

I don't use i3, but found an article that describes configuration

https://fedoramagazine.org/getting-started-i3-window-manager/

In ~/.config/i3/config

Code:
bindsym $mod+Return exec urxvt


Better still, see http://jlk.fjfi.cvut.cz/arch/manpages/man/i3-sensible-terminal.1

i3 has a script "i3-sensible-terminal" that is supposed to respect the $TERMINAL variable, which I believe is to be set BEFORE starting i3.
Back to top
View user's profile Send private message
tenspd1370
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2017
Posts: 78

PostPosted: Mon Jan 22, 2018 4:49 pm    Post subject: Reply with quote

Yes I have that all working. I was referring to what applications that use Freedesktop.org standards consider default. For example, if I open up the editor atom and click on a file in the file menu pane and select "Show in File Browser", regardless of what I have set in my i3 config, it was opening up qwindirstat - which I had installed on my computer. I later removed / disabled those entries using various xdg commands and/or editing xdg config files and was able to get it to openMidnight Commander, but always in xterm (I wanted urxvt). Finally, I removed xterm and made a soft link xterm to urxvt and it works like I wanted. All my i3 key combos work with urxvt just fin and as expected. So it seemed like a lot of hjacking to get xdg / freedesktop aware apps to do what I wante, and wondered if anyone knew of an easier way. All my searches on google f the matter show that the FreeDesktop crowd actually debate this a lot.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum