ArmEagle
28th October 2004, 13:21
:3eclipsee for Pluribus the :crown: and our little big :santa2:.
Linux (and OSX?) has been given an early Xmas present called "paste".
No more [] when typing Ctrl-V.
The game uses CLIPBOARD for copy & paste. Like most X programs that use Ctrl-C & V. Though personally I use non-graphical programs most of the time together with ATITD. So I found a way to convert CLIPBOARD to SELECTION and vice versa.
I installed the program xclip which can do lots of things with the different textbuffers.
I wrote 2 simple scripts that combine 2 calls to xclip to convert between CLIPBOARD and SELECTION. Then I mapped these scripts to some hotkeys (I run Fluxbox here and simply edit ~/.fluxbox/keys).
So if you can map hotkeys in your windowmanager too and can isntall xclip, then I have the simple scripts here for you:
# convert clipboard to selection
xclip -o -selection CLIPBOARD | xclip -i -selection PRIMARY
# convert selection to clipboard
xclip -o -selection PRIMARY | xclip -i -selection CLIPBOARD
Once I had a simpel X program installed with some buttons that could do the conversion, but I forgot the name. And I prefer using hotkeys anyway.
:thumbsup:
Linux (and OSX?) has been given an early Xmas present called "paste".
No more [] when typing Ctrl-V.
The game uses CLIPBOARD for copy & paste. Like most X programs that use Ctrl-C & V. Though personally I use non-graphical programs most of the time together with ATITD. So I found a way to convert CLIPBOARD to SELECTION and vice versa.
I installed the program xclip which can do lots of things with the different textbuffers.
I wrote 2 simple scripts that combine 2 calls to xclip to convert between CLIPBOARD and SELECTION. Then I mapped these scripts to some hotkeys (I run Fluxbox here and simply edit ~/.fluxbox/keys).
So if you can map hotkeys in your windowmanager too and can isntall xclip, then I have the simple scripts here for you:
# convert clipboard to selection
xclip -o -selection CLIPBOARD | xclip -i -selection PRIMARY
# convert selection to clipboard
xclip -o -selection PRIMARY | xclip -i -selection CLIPBOARD
Once I had a simpel X program installed with some buttons that could do the conversion, but I forgot the name. And I prefer using hotkeys anyway.
:thumbsup: