📜 ⬆️ ⬇️

Keyboard layout in Q4OS

What for?


Let's say so, in one place the solution was not found. After spending time working on the layout I decided to share with the community. It is useful to those who prefer switching languages ​​on the keyboard 'Ctrl + Shift' , 'Alt + Shift' ..., instead of 'Alt + Space' or 'Ctrl + Alt + K' by default.

It all started with the fact that it took a light and functional system for users familiar only with Windows with a weak hardware component. Q4OS met the requirements, but many did not take the default language switching.

Little about the system




Setting the keyboard layout in Q4OS (1.4.12, Orion)


Install gxkb - the indicator and keyboard layout switch for X11.
')
sudo su aptitude install gxkb 


Or install fresher under their architecture.
https://sourceforge.net/projects/gxkb/

Looking ahead, you will need libraries.

 sudo su aptitude install libappindicator1 libwnck22 libxklavier16 


Install the downloaded package gxkb_0.7.5_i386.deb

 sudo su dpkg -i gxkb_0.7.5_i386.deb 


Run through quick launch by typing gxkb
or from the console under the user .

 /usr/bin/gxkb 


The gxkb.cfg configuration file will appear after the first close of the program in the user directory ~ / .config / gxkb / .



Below is the modified default, with the switch layout Ctrt + Shift

 vi ~/.config/gxkb/gxkb.cfg 

 # --- > [xkb config] group_policy=2 default_group=0 never_modify_config=false model=pc105 layouts=us,ru,ua variants=, toggle_option=grp:ctrt_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp compose_key_position= # --- < 


The program itself does not start (when rebooting), we add it to the Trinity autoload.
Run as user !

 cd ~/.trinity/Autostart ln -s /usr/bin/gxkb gxkb 


Turning off the system switch layout



Go to the tab "Xkb Options"


Reboot and enjoy.

Performance tested pipeline on multiple PCs.

Source: https://habr.com/ru/post/307414/


All Articles