I was wondering if it is possible to add a keybind to paste the x-clipboard in Lubuntu. (primary selection)
If possible to keybind it, would you still be able to use the middle-click too? Is there perhaps a clipboard manager that supports this?
Thanks in advance, Zarnaik
Edit: Thanks to Kupiakos for providing a solution. I have not tested it in Ubuntu, Lubuntu only.
This is how I did it.
sudo apt-get install xsel xvkbd
to install the necessary packages. Then open the openbox configuration file as so
replacing gedit by whatever text-editor you use.
Once inside the file look for the
<keyboard> tag and add the below code.
<keybind key="W-v"> <action name="Execute"> <command>sh -c 'xsel | xvkbd -xsendevent -file -'</command> </action> </keybind>
I configured it to work with Super + v, but you can easily adjust that. Save the file and make openbox notice the change by executing
That's all there is to it.
Again thanks to Kupiakos for providing the command that I still fail to understand.