LINUX.ORG.RU

История изменений

Исправление mertvoprog, (текущая версия) :

@bq:23:50:33:/tmp/dl$ cat ~/.config/loloswitcher/config.ini 
# LoLo Switcher config file

# Config version (do not edit this parameter!)
ConfigVersion=1

# Input device
InputDevice=/dev/input/by-id/usb-SONiX_USB_Keyboard-event-kbd

# Type of device
# 0 - keyboard
# 1 - joystick
DeviceType=0

# Total number of language layout
# For example:
# if you use ENG and RUS, set 2
# if you use ENG, RUS and UKR, set 3
NumberOfLayout=3

# Language switch method
# 0 - cyclic switch
# 1 - direct switch
SwitchMethod=1

# RegExp for primary filtering device events
# For classic keyboard, set value to ^1,[0-9]+,[0-9]+;$
# and this filter enabled only KeyPress, KeyHold and KeyRelease event.
# Before research device codes (with option -t1), clear this value.
EventFilter=^1,[0-9]+,[0-9]+;$

# RegExp with codes for switch language layouts
# If you use cyclic switch method, set variable Sequence0 only.
# If you use direct switch method, set variable SequenceX
# for each layout (numeric from 0).
Sequence0=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,42,1;1,42,0;$
Sequence1=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,54,1;1,54,0;$
Sequence2=(?<!1,29,1;|1,29,1;|1,42,1;|1,42,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;)1,97,1;1,54,1;1,97,0;1,54,0;$
#Sequence2=(?<!1,29,1;|1,29,1;|1,42,1;|1,42,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,54,1;|1,54,2;)1,100,1;1,100,0;$

# Bash command if language layout switched (optional).
# Set CommandX for each layout (numeric from 0).
Command0=beep -f 262 -l 10
Command1=beep -f 277 -l 10
Command2=beep -f 293 -l 10

Исходная версия mertvoprog, :

@bq:23:50:33:/tmp/dl$ cat ~/.config/loloswitcher/config.ini 
# LoLo Switcher config file

# Config version (do not edit this parameter!)
ConfigVersion=1

# Input device
InputDevice=/dev/input/by-id/usb-SONiX_USB_Keyboard-event-kbd

# Type of device
# 0 - keyboard
# 1 - joystick
DeviceType=0

# Total number of language layout
# For example:
# if you use ENG and RUS, set 2
# if you use ENG, RUS and UKR, set 3
NumberOfLayout=3

# Language switch method
# 0 - cyclic switch
# 1 - direct switch
SwitchMethod=1

# RegExp for primary filtering device events
# For classic keyboard, set value to ^1,[0-9]+,[0-9]+;$
# and this filter enabled only KeyPress, KeyHold and KeyRelease event.
# Before research device codes (with option -t1), clear this value.
EventFilter=^1,[0-9]+,[0-9]+;$

# RegExp with codes for switch language layouts
# If you use cyclic switch method, set variable Sequence0 only.
# If you use direct switch method, set variable SequenceX
# for each layout (numeric from 0).
Sequence0=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,42,1;1,42,0;$
Sequence1=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,100,1;|1,100,2;)1,54,1;1,54,0;$
Sequence2=(?<!1,29,1;|1,29,1;|1,42,1;|1,42,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;)1,97,1;1,54,1;1,97,0;1,54,0;$
#Sequence2=(?<!1,29,1;|1,29,1;|1,42,1;|1,42,2;|1,97,1;|1,97,2;|1,56,1;|1,56,2;|1,54,1;|1,54,2;)1,100,1;1,100,0;$

# Bash command if language layout switched (optional).
# Set CommandX for each layout (numeric from 0).
Command0=beep -f 262 -l 10
Command1=beep -f 277 -l 10
Command2=beep -f 293 -l 10