@@ -2,7 +2,7 @@ What is it and why?
22===================
33
44This utility allows you switch keyboard groups in X Window in the most
5- ergonomic way (in my view :).
5+ ergonomic way (in my view :).
66I think keys for switching keyboard layouts should be:
77
881 . Dedicated.
@@ -29,7 +29,7 @@ keys. But when you press Shift with other keys then it applied as
2929modifier key.
3030
3131I not found out of the box solution how to setup X to use Shifts as
32- standalone keys. Also I used two keyboards in same time (notebok internal and USB plugged)
32+ standalone keys. Also I used two keyboards in same time (notebok internal and USB plugged)
3333and was need to switch layouts on both of them. So I wrote this utility.
3434
3535So ` shift-shift ` has features:
@@ -38,7 +38,15 @@ So `shift-shift` has features:
3838* RShift pressed standalone locks X to group2 layout
3939* Layout switched on all keyboards simultaneously
4040
41- You need customize layout groups in your X config or with ` setxkbmap ` .
41+ You need customize layout groups in your X to
42+
43+
44+
45+
46+
47+
48+
49+ cconfig or with ` setxkbmap ` .
4250
4351About code
4452==========
@@ -56,25 +64,25 @@ Install
5664
5765Binding of ` evdev ` for Go used so before build you need:
5866
59- go get github.com/gvalkov/golang-evdev/evdev
67+ go get github.com/gvalkov/golang-evdev/evdev
6068
6169Then as usual:
6270
63- go build
71+ go build
6472
65- Of course you need Go environment installed for build.
73+ Of course you need Go environment installed for build.
6674And as program uses Xlib through cgo interface then you need ` xlib-devel `
6775installed.
6876
6977Usage
7078=====
7179
72- $ sudo shift-shift -h
73- Usage of shift-shift:
74- -list=false: list all devices listened by evdev
75- -match="keyboard": string used to match keyboard device
76- -print=false: print pressed keys
77- -quiet=false: be silent
80+ $ sudo shift-shift -h
81+ Usage of shift-shift:
82+ -list=false: list all devices listened by evdev
83+ -match="keyboard": string used to match keyboard device
84+ -print=false: print pressed keys
85+ -quiet=false: be silent
7886
7987On start program find devices where name contains "keyboard" string. It assume there
8088are keyboard devices. You may customize this by set your own string with ` -match ` arg.
@@ -85,9 +93,13 @@ Got list of all input devices with `list` arg.
8593For autostart run it somewhere after X started with your account. I use ` ~/.bash_profile ` for
8694this.
8795
88- sudo pidof shift-shift >/dev/null || sudo shift-shift -quiet >/dev/null &
96+ sudo pidof shift-shift >/dev/null || sudo shift-shift -quiet >/dev/null &
8997
9098Thanks
9199======
92100
93101Thanks to people who contributed bugfixes and improvements for ` shift-shift ` .
102+
103+
104+ todo add ref to
105+ https://github.com/nmukhachev/sway-xkb-switcher
0 commit comments