3

When launching Dyalog, it will directly map the Windows Key as the APL Symbol key. However when I leave Dyalog with ⎕OFF, it will not return in the normal state of the keyboard. Most of my WM keybinding involves the Win key and I did not find any other solutions than reboot my computers.

Is it possible to override Dyalog APL Key so it will not automatically transform the Win Key in APL Key?

I was planning to use a setxkbmap command to have the control on that.

Thanks.

Adám
  • 6,573
  • 20
  • 37

1 Answers1

3

If you call dyalog -nokbd then the keyboard setup will be skipped. Of course, you'll then have to handle the keyboarding yourself (see APL Wiki for details).

Alternatively, you can create a little script which restores your keyboard when APL terminates, as follows:

OLDLAYOUT=$(setxkbmap -query | sed -n 's/^layout://p')
OLDVARIANT=$(setxkbmap -query | sed -n 's/^variant://p')
OLDOPTION=$(setxkbmap -query | sed -n 's/^options://p')
dyalog
OLDLAYOUT=$(echo $OLDLAYOUT | sed 's/^$/,/')
OLDVARIANT=$(echo $OLDVARIANT | sed 's/^$/,/')
setxkbmap -layout $OLDLAYOUT -variant $OLDVARIANT -option -option $OLDOPTION
Adám
  • 6,573
  • 20
  • 37
  • I opted for aliasing `dyalog` to `dyalog -nokbd` and managing my keyboard on my own. Thanks for the insight aournd the `mapl' bash script ! Is there a place where to report those to Dyalog? – notagoodidea Aug 16 '20 at 13:53
  • @notagoodidea You can always email support@dyalog.com – Adám Aug 16 '20 at 14:32