Re: [dev] dwm: xclip problem

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Mon, 11 Jul 2011 16:09:17 +0000

Žann sun 10.jśl 2011 17:11, skrifaši Thomas Dean:
> I pipe the output of xclip through xmacroplay, like this:
>
> #!/bin/sh
> sleep 0.2
> {
> echo -n 'String '
Out of curiosity, why?

> xclip -o
> } | xmacroplay -d 3 :0
>
> which I also bound to Modkey-v. The sleep statement ensures that I can let
> go of the Modkey in time. Otherwise the outcome can be ugly :-)
>
>
But then again, you're loosing the benefit X selections have over gpm.
You could instead use xdootol.

#!/bin/sh
xdotool type --clearmodifiers $(
        echo -n 'String '
        xclip -o
)

Remove '--clearmodifiers' to get inverse case using capslock,
alternative characters using shift3, etc.
Received on Mon Jul 11 2011 - 18:09:17 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 11 2011 - 18:12:02 CEST