LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Openbox keybinding for keyboard "version" of mouse's middle-click paste

Posted 05-08-2021 at 06:34 PM by the dsc (linux-related notes)
Updated 08-06-2021 at 09:56 PM by the dsc

I thought it already existed natively, but apparently it does not. Maybe it can be done directly on rc.xml's keybindings themselves, but in order to get it to work it seemed easier as a separate one-liner "script":

Code:
xdotool getactivewindow windowmap windowraise keyup Alt keyup v type --delay 0 "$(xclip -s primary -o) "
For a "left-alt+v" keybinding, to be set on rc.xml, or whatever it's done in other environments/WMs. I'm not sure all the...
Member
Posted in Uncategorized
Views 324 Comments 0 the dsc is offline
Old

Handy 1-liner script to copy link addresses in Firefox just by hovering and pressing a key

Posted 09-06-2016 at 11:58 AM by the dsc (linux-related notes)
Updated 10-30-2016 at 02:11 AM by the dsc (grammerz und orthographicz ure wrongzes)

Let's say, there is a page with several interesting podcasts, you want to download several of them, not all. Don't bother with dozens of right-click-copy-url-then-go-and-paste-somewhere-somehow. Just hover the link and press a custom key that runs this script line:

Code:
xdotool click 3 && xdotool mousemove_relative 5 5 && xdotool key a && echo "$(xclip -o)" >> /dev/shm/ffclipboard
For Debian (sid/testing, as of 2016), apparently...
Member
Posted in Uncategorized
Views 1005 Comments 0 the dsc is offline
Old

mrxvt: how to configure clipboard copy and paste

Posted 09-27-2009 at 03:33 PM by catkin

Clipboard paste by Ctrl+Shift+V
Add this line to ~/.mrxvt
Code:
Mrxvt.macro.Ctrl+Shift+V: Paste CLIPBOARD
Clipboard copy by Ctrl+Shift+C
  1. Install xclip.
  2. Add this line to ~/.mrxvt
    Code:
    Mrxvt.macro.Ctrl+Shift+C: Exec !/usr/bin/xclip -o | /usr/bin/xclip -selection clipboard

Notes
  • Tested on Slackware 13.0 with mrxvt 0.5.4 and xclip 0.12.
  • Ctrl+Shift+V is configured by default to "Paste X selection into active tab" but there is no loss of functionality;
...
LQ 5k Club
Posted in Uncategorized
Views 8900 Comments 0 catkin is offline
Old

xclip - Copy contents from command line to X clipboard in openSUSE

Posted 04-14-2009 at 01:54 AM by rbkumaran

xclip is a command line interface to the X11 selections (X11 clipboard). It can also be used for copying files, as an alternative to sftp/scp, thus avoiding password prompts when X11 forwarding has already been setup. xclip reads from Standard Input or from one or more files and copy it to the X11 clipboard making it available to the X applications.Read More
LQ Newbie
Posted in Uncategorized
Views 3223 Comments 0 rbkumaran is offline
Old

Slackware Undocumented 'Well Duh' Quark #2917 - console vim and X11 clipboard

Posted 03-20-2009 at 11:41 PM by lumak (Lumak's Guide to Random Things)
Updated 05-31-2009 at 02:41 PM by lumak

The special registers * and + do not function in console vim in Slackware. Vim has been compiled both with -clipboard and -xterm_clipboard. If you enable GPM, you can shift highlight in console vim to middle click past in any x application. You can also Shift+middle click in console vim to past text from any x application. If you don't want to use the Shift modifier, you can sacrifice mouse functionality and type ":set mouse=r" in normal mode. This issue does not affect gvim.
...
Member
Views 3171 Comments 0 lumak is offline

  



All times are GMT -5. The time now is 11:51 AM.

Main Menu
Advertisement
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