Documentation · Hotkey and layouts
Lang Switcher layout flag in the tray: how to turn it on
The tray icon can show the flag of the layout you’re typing in: “Settings…” → “General” → “Layout flag in the tray”. Click the flag to open the Windows list of layouts, or right-click it for the tray menu.
What the flag is
Turn on “Layout flag in the tray”, and the Lang Switcher tray icon becomes the flag of the keyboard layout you’re typing in. Switch layouts, and the flag changes too. Click the flag, and a list of layouts opens.
Alt+Shift switches from the English layout to the Russian one, a click on the flag opens the list of layouts, and picking English brings it back.- The flag goes by the country Windows gives for the layout’s language: English (United States) gets the US flag, English (United Kingdom) the British one. Two layouts from one country share a flag, and the icon’s tooltip tells them apart.
- No flag for that country in the program? You get a small tile with two letters of the language instead.
- The tooltip shows the name of the layout’s language.
- While the program is suspended, the flag is gray and paler. An unread letter puts a dot on it.
- In a program on the exclusions list, the flag still shows the layout.
How to turn it on
Open the tray menu → “Settings…” → “General” and turn on “Layout flag in the tray”. The change takes effect right away: the icon turns into the flag, and there’s nothing else to click. The flag is off by default. In the settings file, it’s [general] tray_flag = true.
How to keep the flag on the taskbar
If the flag is hidden under the ^ arrow by the clock, move the icon onto the taskbar.
Windows 11: Settings → Personalization → Taskbar. Expand “Other system tray icons” and turn on Lang Switcher.
Windows 10: Settings → Personalization → Taskbar → “Select which icons appear on the taskbar”, and turn on Lang Switcher.
On both, you can also get there by right-clicking the taskbar and choosing “Taskbar settings”.
Clicking the flag
A left click on the flag opens the Windows list of layouts, the same one you get by clicking the input language icon by the clock. Pick a layout, and the window you were typing in becomes active again and gets that layout. Esc, a click outside the list or picking the current layout changes nothing.
With the flag on, the tray menu (“Settings…”, “Suspend” and the rest) opens with a right click: the left click now belongs to the list of layouts.
If there’s no language icon by the clock
If the input language icon by the clock is hidden, or the Windows list doesn’t open within a second and a half, the flag shows a list of its own, much like the one in Windows 11:
- the heading “Keyboard layout”;
- a row for each layout: the language code (ENG, RUS) and the name, as in the settings window, with the Windows name of the layout in lighter text below; the current layout is marked with a bar on the left;
- the “More keyboard settings” link at the bottom.
This list works with the keyboard too: the arrow keys, Home and End, Enter or Space to pick, Esc to close. Once you pick a layout, the window you were typing in becomes active again, and the program switches it to that layout itself.
Known issue: after you click in a text field in Microsoft Edge, a layout picked in this list sometimes doesn’t get through to Edge, and the same can happen when you switch layouts with Windows’ own keys. As far as Windows is concerned, the layout has switched, but Edge keeps typing in the previous one until you restart it. This is Edge’s own behavior: it happens even when Lang Switcher isn’t running.
How to turn it off
Right-click the flag → “Settings…” → “General” and turn off “Layout flag in the tray”. The icon goes back to normal at once, and a left click opens the menu again.
See also
Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev