Typing glyphs on Linux: Difference between revisions

Jump to navigation Jump to search
1,531 bytes added ,  16:06, 17 August 2020
Add notes on Dyalog overriding ("hijacking") APL keyboard on Linux
(Add notes on Dyalog overriding ("hijacking") APL keyboard on Linux)
Line 111: Line 111:


== Troubleshooting ==
== Troubleshooting ==
=== Dyalog Overrides Current Keyboard Settings ===
By default, Dyalog APL overrides the current [https://www.x.org/wiki/XKB/ XKB] configuration to use the Meta ("Windows") key as the modifier for entering APL symbols. If the user manages their keyboard configuration manually using the techniques described on this page, this behavior can be quite troublesome.
To run Dyalog without overriding ("hijacking") the user keyboard configuration, run <code>dyalog</code> with the <code>nokbd</code> option:
<source lang=bash>
dyalog -nokbd
</source>
=== APL Keyboard Remains After Dyalog is Closed ===
Dyalog overrides the current keyboard configuration, as described in [[#Dyalog_Overrides_Current_Keyboard_Settings|this section]], but fails to return the user to their previous keyboard configuration on exit. To solve this, create a custom [[wikipedia:Bash_(Unix_shell)|Bash]] script to save and revert keyboard settings upon exiting Dyalog APL:<ref>Adám Brudzewsky. [https://stackoverflow.com/questions/63431922/dyalog-apl-hijack-windows-key-and-do-not-give-it-back-fedora-32-gnome-free-lic/63433845#63433845 Stack Overflow answer]. 17 Aug, 2020</ref>
<source lang=bash>
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
</source>


=== Settings reverted during X Windows session ===
=== Settings reverted during X Windows session ===
45

edits

Navigation menu