I set my Caps Lock as Ctrl in Ubuntu 16.04 using: setxkbmap -option 'caps:ctrl_modifier' But when I change the keyboard from En to Cs, Caps Lock becomes Caps Lock again, not Ctrl.
setxkbmap -option 'caps:ctrl_modifier'
To fix this, I have to execute the above command setxkbmapagain from the terminal.
setxkbmap
How can I make the setting permanent even if I switch keyboard layouts?
To make the parameters setxkbmap set permanent, add them /etc/default/keyboardas follows:
/etc/default/keyboard
--- a/etc/default/keyboard +++ b/etc/default/keyboard @@ -5,6 +5,6 @@ XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" -XKBOPTIONS="" +XKBOPTIONS="caps:ctrl_modifier" BACKSPACE="guess"
caps:ctrl_modifier , En .
caps:ctrl_modifier
Xorg. . https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_X_configuration_files . setxkbmap .
. , Ubuntu 16.04: - /.bashrc( vim.bashrc( ). - ! : setxkbmap -option ctrl: swapcaps
Source: https://habr.com/ru/post/1656831/More articles:Convert from RGB to YUYV in OpenCV - c ++Apk could not be installed on Android N with the error INSTALL_FAILED_INVALID_APK - androidTensorFlow-Slim: data provider for in-memory dataset - tensorflowShould I call SaveChanges once or after each change? - c #Using Android KeyStore to store user credentials - androidSirikit supported services and their extended use - iosRedshift time series loading questions - amazon-redshiftDjango rest structure: do not return an array, but a list of objects with id as key - djangoMandatory powershell parameter with default value - parametersBuild error vstset.console.exe - c #All Articles