Browse Source

Add `eeiam wrtiting $1` (set keyboard layout)

Alois Mahdal 10 years ago
parent
commit
6a0e9880f8
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      bin/eeiam.in

+ 11
- 1
bin/eeiam.in View File

20
     echo moving
20
     echo moving
21
     echo ooo
21
     echo ooo
22
     echo wfh
22
     echo wfh
23
+    echo writing
23
 }
24
 }
24
 
25
 
25
 usage() {
26
 usage() {
115
     die "not implemented"
116
     die "not implemented"
116
 }
117
 }
117
 
118
 
119
+i_am_writing() {
120
+    #
121
+    # writing in that language
122
+    #
123
+    set -x
124
+    DISPLAY=:0 setxkbmap $1
125
+}
126
+
118
 cmd=$1
127
 cmd=$1
119
 
128
 
120
 test -n "$cmd" || usage
129
 test -n "$cmd" || usage
121
 
130
 
122
 available_commands | grep -qse ^$1 || usage
131
 available_commands | grep -qse ^$1 || usage
123
 
132
 
133
+shift
124
 
134
 
125
-i_am_$cmd
135
+i_am_$cmd $1