KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   

- News . 
click to vote up

Bryce Harrington: Configuring keyboard for “middle-paste”

Published Jul 19 2013 via RSS

The Linux desktop has two paste buffers: One that operates via the usual Ctrl-C/Ctrl-V shortcuts, and a second that can be accessed by clicking the middle mouse button on a three button mouse, or by clicking the scrollwheel on a two button + scrollwheel mouse.

On my desktop PC I use this second paste buffer frequently, but unfortunately my laptops don’t have the equivalent of a middle mouse button on their touchpads. There is a middle mouse click emulation you can configure that works by clicking both left and right buttons together, and on my older laptops this works well enough. However newer laptops have buttons that are not discrete physical buttons but clickable corners of the touchpad itself, and I find it quite challenging to simultaneously press both corners.

I cobbled together a simple work-around using xdotool, a very slick utility that allows X11 emulation of keyboard and mouse activity.

sudo apt-get install xdotool

I put this script in ~/bin/middle-mouse:


 xdotool mousedown --clearmodifiers 2
 xdotool mouseup 2

Then I set the script up to be run with Ctrl-Alt-V to parallel Ctrl-V paste. In Ubuntu’s System Settings go to Keyboard, select the Shortcuts tab, and then pick Custom Shortcuts. Click the ‘+’ and fill out the dialog with the full path to the script, as shown below:

Then click where it says ‘Disabled’ to set the accelerator keys and hit Ctrl-Alt-V.  Done!

The one quirk I’ve found in using this is with Firefox.  For some reason it prepends whatever I paste with a greater-than sign.  Anyone have an idea on how to fix that?

BackRead original postSend to a friend

Add comment

Add comment
Show all posts


How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.


 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2001-2016 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.