lumina-desktop / lumina

Lumina Desktop Environment
http://lumina-desktop.org
BSD 3-Clause "New" or "Revised" License
531 stars 116 forks source link

PLEASE make working tool for switching language of keyboard #415

Open ZloyHohol opened 7 years ago

ZloyHohol commented 7 years ago

Video with problem

I was instal TrueOS from image: "TrueOS-2017-04-21-x64-USB.img" . I want switch between Russian, Ukrainian, English languages in any program. Now in TrueOS (Lumina Desktop) to switch input language user must use FCITX. FCITX work bad, it program work with few list programs (libreoffice) I cannot write text on russian or ukrainian language in these programs: Lumina text editor! QTerminal, QupZilla, Qbittorrent... and other windows and programs

Moreover I want that i can switch language of keyboard input by one button, like in other DE... KDE4/5, mate,cinnamon,lxde,xfce. For example this button will be (WinKey), however in Lumina DE this button open Menu on Lumina Panel.

sorry for my english

original text : "Я установил TrueOS с образа: «TrueOS-2017-04-21-x64-USB.img». Я хочу переключиться на русский, украинский, английский языки в любой программе. Сейчас в TrueOS (Lumina Desktop) для переключения языка ввода пользователю необходимо использовать FCITX. FCITX работает плохо, программа работает с небольшим списком программ (libreoffice) Я не могу писать текст на русском или украинском языке в этих программах: текстовый редактор Lumina! QTerminal, QupZilla, Qbittorrent ... и в других окнах и программ

Кроме того, я хочу, чтобы я мог переключать язык ввода с клавиатуры одной кнопкой, как в других DE ... KDE4 / 5, mate, cinnamon, lxde, xfce. Например, эта кнопка будет (WinKey), однако в Lumina DE эта кнопка открывает Меню на панели Lumina."

DmitryPostolov commented 7 years ago

Для переключения между русской и английской раскладкой я использую скрипт:

!/bin/sh

exec setxkbmap -layout "us,ru" -option "grp:alt_shift_toggle,grp_led:scroll"

Сохраните его в текстовом файле key, затем сделать права запуска: % chmod +x key

после чего в конфигурационных настройках Lumina добавить файл key в автозагрузку. После перезапуска сеанса переключения раскладок будет работать во всех X-программах по Alt-Shift.

Скорее всего аналогичным образом можно добавить поддержку украинского языка.

Но я поддерживаю ваше предложение по созданию специализированной утилиты по переключению раскладок.

I am support your message to developers create a special tool for switching languages.

q5sys commented 7 years ago

We don't have time to write a fcitx replacement right now. I'm marking this 'help-wanted' in case someone in the community has time to work on this. Thanks for the report.

rostwald commented 7 years ago

If switching the keyboard layout is sufficient, just write a small shell script around setxkbmap and use a hotkey to run it. (Maybe this is what @DmitryPostolov already suggested)

I use this approach to switch between my modified dvorak, default german and default US english keyboard layouts with 3 of the multimedia/additional keys on my keyboard. Each key just runs the script with a different option, eg "switchlayout.sh de" for german layout.

I don't know if it is even possible without logging out / restarting the Lumina session to completely switch the UI language. Programs that are already running (e.g. libreoffice via its launcher tool) usually can't switch the UI language while running. At the very least they need to be restarted. Firefox/Thunderbird have their own (weird/annoying) way of managing UI language - these usually don't follow any system settings.

rodlie commented 6 years ago

https://github.com/rodlie/lumina-extra/tree/master/lumina-keyboard-manager

Btw, why are the locale checkboxes in Lumina settings empty? I should be able to select various locales, or is it just an issue with me running Linux.

beanpole135 commented 6 years ago

Check to see if you installed the localization files for Lumina (*/share/lumina-desktop/i18n). Those files are what are probed to determine the locales that are available.

rodlie commented 6 years ago

Ah, that's explains a lot, thanks for the information.