need launcher syntax help with caplock key killer

Todd And Margo Chester toddandmargo at gmail.com
Mon Mar 5 21:44:56 CET 2012


On 03/04/2012 11:26 PM, Nick Schermer wrote:
> 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

Hi Nick,

That did the trick!

Thank you,
-T


More information about the Xfce mailing list