Skip to content

Paste clipboard content using the default urxvt libs

License

Notifications You must be signed in to change notification settings

su8/urxvt-pasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Paste clipboard content using the default urxvt libs. Handles the X11 clipboard too. The default selection-to-clipboard lib will put the selected content into the buffer automatically, no need to bind any key.

XMonad users can use the universal pasting:

import XMonad.Util.Paste 
 , ((mod4Mask , xK_v), pasteSelection) 

Installation


Simply place the script in /usr/lib/urxvt/perl/ for system-wide availability or in ~/.urxvt/ext/ for user-only availability. You can also put it in a folder of your choice, but then you have to add this line to your .Xdefaults/.Xresources:

# Don't type ~ or $HOME below
URxvt.perl-lib: /home/user/your/folder/

# extensions to activate, do not omit selection-to-clipboard
URxvt.perl-ext-common           : selection-to-clipboard,pasta

# keyboard shortcut to trigger the lib
URxvt.keysym.Control-Shift-V    : perl:pasta:paste

Requirements

  • urxvt (rxvt-unicode) compiled with support for perl

About

Paste clipboard content using the default urxvt libs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages