LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2017, 11:55 AM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
URxvt, ctrl+shift+n to open a new terminal?


In my ~/.Xresources i have gotten this far;

Code:
URxvt.keysym.C-N: urxvtc
So when pressing ctrl+shift+n, it prints "urxvtc" to the prompt, however i'd like to execute it, similar to how Konsole, or xfce4's terminal will open a new terminal window.

How can i do this from inside of ~/.Xresources?
 
Old 05-08-2017, 12:18 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
I also just tried looking at plugins, and came up with this, however nothing happens.
Any ideas?

Eg; in ~/.Xresources
Code:
URxvt.perl-ext-common: default,matcher,fullscreen,tabbed,newterm
URxvt.keysym.C-N: perl:newterm:fork
~/.urxvt/ext/newterm
Code:
#! perl

sub on_user_command {
	my ($self, $cmd) = @_;
	if ($cmd eq "newterm:fork") {
		my $dummy = `urxvtc &`;
	}
}
 
Old 05-08-2017, 12:32 PM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
I just found someone else's plugin that works perfectly:
https://gist.github.com/tpikonen/10294723

Instructions to use for anyone looking for this same thing,
copy that file into ~/.urxvt/ext/new-window

Then in your ~/.Xresources add new-window to your perl-ext-common line, eg;
Code:
 URxvt.perl-ext-common: new-window
Then add a keysym of your choice (here it is ctrl+shift+n)
Code:
URxvt.keysym.C-N: perl:new-window
Solved!
 
  


Reply

Tags
ctrl, shift, terminal, urxvt, xresources


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
terminal 'term' doesnt work correctly: ctrl+shift+c icegood Linux - General 5 04-26-2014 01:03 AM
[SOLVED] command line/tty/terminal delete/cut operations confusion (ctrl+u,ctrl+y etc) NeoLux Linux - Newbie 4 12-16-2012 11:33 AM
Urxvt- use keysym to remap insert shift(paste buffer)? dman777 Linux - Software 1 07-08-2011 12:50 AM
what is the command being called when pressing ctrl-shift-tab on gnome-terminal odysseus.lost Linux - Desktop 2 10-11-2006 10:49 AM
KDE: Ctrl+shift = very annoying! Spudley Linux - Software 1 04-21-2005 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration