Timeline for Script to toggle setxkbmap
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 2, 2012 at 14:28 | comment | added | Fredrik | What I ended up doing was saving the line to a .sh file in my home dir. Then mapped ./toggleLayout.sh to ctrl-esc | |
| Sep 2, 2012 at 14:27 | comment | added | Fredrik | Really neat with with one line solution. Thanks. | |
| Sep 2, 2012 at 14:26 | vote | accept | Fredrik | ||
| Sep 2, 2012 at 14:26 | vote | accept | Fredrik | ||
| Sep 2, 2012 at 14:26 | |||||
| Sep 2, 2012 at 1:56 | history | edited | daisy | CC BY-SA 3.0 |
added 52 characters in body
|
| Sep 2, 2012 at 1:40 | comment | added | terdon♦ |
Yes, believe me, I have spent a long time dealing with this type of issue. I regularly switch between 3 keyboard layouts (us,fr,es) and between two physical keyboards, one with US layout and one with Spanish. If I use the applet on my tint2 panel to change the keyboard layout, there is no difference at all in the output of setxkbmap. Same goes if I switch layouts using a shortcut set up through the keyboard shortcuts GUI on my LMDE. setxkbmap only changes when I switch using it.
|
|
| Sep 2, 2012 at 1:22 | comment | added | daisy | @terdon it works at least on my Ubuntu 12.04 box, have you tried that on your system ? | |
| Sep 1, 2012 at 17:40 | comment | added | terdon♦ |
Unfortunately, this does not work if you change the layout using a gui method. At least, it doesn't on my xfce box. It only works if you use setxkbmap to switch layouts. The only way I've found that always, consistently works is parsing xmodmap as in my answer below.
|
|
| Sep 1, 2012 at 16:08 | history | answered | daisy | CC BY-SA 3.0 |