stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] How do I bind left and right shifts simultaneous pressing


From: David Bjergaard
Subject: Re: [STUMP] How do I bind left and right shifts simultaneous pressing
Date: Fri, 13 Apr 2018 22:25:13 -0400

I will play with this a bit but I don’t know if stumpwm is set up to respond to 
two modifier keys pressed to trigger a keybinding. 

    David

> On Apr 13, 2018, at 12:47 AM, York Zhao <address@hidden> wrote:
> 
> Hi List,
> 
> I would like to be able to toggle keyboard layout between DWERT and DVORAK by 
> pressing both left and right SHIFT keys. I've already written the following 
> command to do this. However, I'm not sure how to bind this command to 
> pressing both SHIFT in Stumpwm.
> 
> (defcommand set-kbd-layout (layout) ()
>   "Set keyboard layout"
>   (setf layout (cdr (assoc layout '(("qwert"  . "qwert")
>                                     ("dvorak" . "dvorak,"))
>                            :test 'equal)))
>   (when layout
>     (run-shell-command (concatenate 'string "setxkbmap -variant " layout))))
> 
> Thanks,
> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]