You are not logged in.

#1 2012-12-14 03:16:17

metafractal
Member
Registered: 2012-08-16
Posts: 9

Clipboard sync sans clipboard manager

I use Awesome WM, mainly with terminal apps but a few graphical apps too. I want to keep my primary buffer and clipboard in sync. I've tried tools like pastebin but they produce too many wakeups and I like to keep my system as lean as possible. A more elegant solution than having a program constantly syncing them in the background is to run a command to sync them on the copy keypress, e.g.

On CTRL-Ins:
xsel -p | xsel -b

On CTRL-c
xsel -b | xsel -p

Awesome makes it easy to configure custom commands for keypresses. But this seems to override the default behaviour, with the result that the original copy function is no longer executed.

My question: How can I write a function that both carries out the regular copy routine and runs the command above, or else how can I assign the sync to occur on keypress in addition to copy occuring (rather than instead)?

Last edited by metafractal (2012-12-14 03:16:51)

Offline

Board footer

Powered by FluxBB