LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-27-2012, 04:12 AM   #1
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Rep: Reputation: 15
Question Running command with Fluxbox keys.


Hello,

I'm running Fluxbox. I've been doing some work with windows and run into the issue of copying and pasting from windows (via rdesktop) into a shell terminal. I installed xclip to get myself the chance to dump my clipboard into my shell terminal by running this command
Code:
xclip -selection clipboard -o
But I created an alias to do this by running xclip.

I'm wondering if I can somehow create a keybinding via the keys file to run this command when I right click. Doing this in any window would be ideal, but I'd to do it with my terminal.

;TLDR I want to run a command when I right click using Fluxbox keybindings.

Edit: I'd like to bind this to my Mouse Right click button

Thanks in advance!

Last edited by Abbaddon; 10-27-2012 at 04:15 AM.
 
Old 10-27-2012, 05:06 AM   #2
Sylvester Ink
Member
 
Registered: Jun 2010
Posts: 44

Rep: Reputation: 19
In your keys file, add the following line:
OnWindow Mouse3 :Exec SCRIPTNAME

More info on fluxbox key commands here:
http://fluxbox-wiki.org/index.php/Keyboard_shortcuts
 
Old 10-27-2012, 07:17 AM   #3
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Sylvester Ink View Post
In your keys file, add the following line:
OnWindow Mouse3 :Exec SCRIPTNAME

More info on fluxbox key commands here:
http://fluxbox-wiki.org/index.php/Keyboard_shortcuts
Thanks for the reply, but it didn't seem to work.

I've tried the following and all don't work.

Code:
#OnWindow Mouse3 :Exec xclip -selection clipboard -o
OnWindow Mouse3 :ExecCommand ~/.fluxbox/scripts/xscript.sh
#OnWindow Mouse3 :Exec {xclip}
 
Old 10-28-2012, 02:45 AM   #4
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Anyone else have any idea's? It doesn't have to using fluxbox keybindings. I'm down for any software with this functionality.

Edit: I'm running Gentoo
 
Old 10-28-2012, 03:50 AM   #5
Sylvester Ink
Member
 
Registered: Jun 2010
Posts: 44

Rep: Reputation: 19
The reason the mouseclick method won't work is that it's not running the command in that specific terminal.
If you just want to copy/paste, why not use your mouse's middle click to paste selected text? Another method to paste text from the clipboard is to press shift+insert in the terminal. As long as rdesktop is configured to copy to your clipboard, these methods should work.
 
Old 10-28-2012, 08:17 AM   #6
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Sylvester Ink View Post
The reason the mouseclick method won't work is that it's not running the command in that specific terminal.
If you just want to copy/paste, why not use your mouse's middle click to paste selected text? Another method to paste text from the clipboard is to press shift+insert in the terminal. As long as rdesktop is configured to copy to your clipboard, these methods should work.
Thanks for the reply. I do use my middle mouse click to paste from my local machine. I'm talking about pasting from a remote desktop session with ctrl+c. I can paste it just fine on my local machine via ctrl+v into a browser or libre office. But I can't ctrl+v into my terminal. Does that make sense? Two seperate clipboards.
 
Old 10-29-2012, 12:24 AM   #7
Sylvester Ink
Member
 
Registered: Jun 2010
Posts: 44

Rep: Reputation: 19
Yeah, I got that. I'm just not as familiar with rdesktop. I believe there's an option to share the clipboard when you run it (I think you have to set it from the windows machine), but I have no way of testing it. Perhaps someone who is more familiar with the software could jump in?
 
1 members found this post helpful.
Old 11-02-2012, 09:34 PM   #8
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Anyone have any other solutions?
 
  


Reply

Tags
fluxbox, gentoo, keybindings


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring fluxbox shortcut keys sumeet inani DamnSmallLinux 1 09-16-2009 08:37 AM
.fluxbox/keys help please tjwoosta Linux - Newbie 3 12-20-2008 10:41 AM
fluxbox keys thelastknowngod Debian 2 06-25-2007 10:17 PM
fluxbox keys chrismiceli Linux - Software 2 08-09-2005 05:10 PM
Fluxbox keys stefannenzen Linux - Software 0 08-24-2004 12:25 PM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration