[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
talk:howtos:window_managers:keyboard_layout_in_i3 [2014/04/16 01:11 (UTC)] – 23.74.9.221 | talk:howtos:window_managers:keyboard_layout_in_i3 [2014/04/16 01:14 (UTC)] – 23.74.9.221 | ||
---|---|---|---|
Line 7: | Line 7: | ||
xkeyboard-config and look at the change layout section) | xkeyboard-config and look at the change layout section) | ||
- | setxkbmap -layout de,gb | + | |
- | setxkbmap -option ' | + | setxkbmap -option ' |
is particularly useful when you only have two layouts you want to toggle with ctrl-alt | is particularly useful when you only have two layouts you want to toggle with ctrl-alt | ||
However with this setup setxkbmap will not give the " | However with this setup setxkbmap will not give the " | ||
- | The only way I could find to do that was to use | + | The only way I could find to do that was to use xkblayout-state |
- | + | ||
- | xkblayout-state | + | |
The new i3script.sh is: (for i3bar output) | The new i3script.sh is: (for i3bar output) | ||
#!/bin/bash | #!/bin/bash | ||
- | |||
i3status --config ~/ | i3status --config ~/ | ||
do | do | ||
Line 26: | Line 23: | ||
LG=$(xkblayout-state print %s) | LG=$(xkblayout-state print %s) | ||
dat=" [{\" | dat=" [{\" | ||
- | | + | echo " |
- | echo " | + | |
- | | + | |
done | done | ||