need launcher syntax help with caplock key killer
Nick Schermer
nick at xfce.org
Mon Mar 5 08:26:01 CET 2012
On 2012-03-05 03:38, Todd And Margo Chester wrote:
> Hi All,
>
> I care not for the Cap Lock key. I can kill it from the command line
> using the following:
>
> setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/
> {print $2}')" -option ctrl:nocaps
>
> But not from a launcher icon (KVM tends to turn it back on, so I made
> an icon to turn it back off). I have been copying and pasting it
> from
> the launcher to an xterm.
>
> So, I figure there is some ".desktop" syntax convention I am missing.
> Anyone know what that is?
You use a pipe, which is not supported by normal spawning. Put the line
in a script file and run the script from the launcher instead.
Maybe "sh -- setxkbmap..." works, but you should give that a shot in a
terminal.
Nick
More information about the Xfce
mailing list