26

Re: LoLo Switcher v.0.15, v.0.20

Здравствуйте, Сергей.

Форкать loloswitcher передумал, решил проблему проще. Внезапно вспомнил, решил поделиться своими костылями:
1. Создал несколько папок с отдельными конфигами под каждое устройство ввода:

~/.config/loloswitcher:
  - autonomous
    - config.ini
  - home
    - config.ini
  - work
    - config.ini

2. Написал systemd user сервисы, для запуска loloswitcher (привожу один, другие — аналогично):

[Unit]
Description=LoLoSwitcher autonomous

[Service]
Environment=DISPLAY=:0
ExecStart=/usr/sbin/loloswitcher
Group=users
User=%i
WorkingDirectory=%h/.config/loloswitcher/autonomous

[Install]
WantedBy=default.target

3. Включил сервисы.
4. Повесил на hotkey (я использую KDE, это легко делается через "Shortcuts and Gestures) команду

systemctl --user restart loloswitcher_autonomous.service loloswitcher_home.service loloswitcher_work.service

Теперь в случае подключения клавиатуры или падений loloswitcher переключается одним сочетанием.
5. PROFIT!

"Правильным" вариантом было бы реализовать поддержку нескольких клавиатур и plug&play в самом loloswitcher, но делать не стал, оценив время/результат.

27

Re: LoLo Switcher v.0.15, v.0.20

Роман, решение хорошее, но я все не вкурю как оно работает.

Роман пишет:

Форкать loloswitcher передумал, решил проблему проще. Внезапно вспомнил, решил поделиться своими костылями:
1. Создал несколько папок с отдельными конфигами под каждое устройство ввода:

~/.config/loloswitcher:
  - autonomous
    - config.ini
  - home
    - config.ini
  - work
    - config.ini

Вот этого я не понял. Что такое autonomous, home, work? Это имена пользователей? Названия устройств ввода (какие-то они странные)? Что-то еще? Какие отличия внутри config.ini?

28

Re: LoLo Switcher v.0.15, v.0.20

Уже год использую LoLo и недавно дошли руки таки настроить его под себя.

Прописал однозначное переключение раскладки: Левый Alt переключает на En, правый — на Ru.

Конфигурация прописана так:
Sequence0=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,42,1;|1,42,2;|1,54,1;|1,54,2;)1,56,1;1,56,0;$
Sequence1=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,42,1;|1,42,2;|1,54,1;|1,54,2;)1,100,1;1,100,0;$

Теперь наблюдаю странный эффект: при переключении на En всё проходит гладко, а вот переключение на Ru как бы запаздывает — при нажатии на L_Alt первый набранный символ просто не отображается, и набор на русском начинается только со второго. [[

Коллеги, подскажите, пожалуйста, в чём тут может быть дело?

29

Re: LoLo Switcher v.0.15, v.0.20

am_ пишет:

Уже год использую LoLo и недавно дошли руки таки настроить его под себя.

Прописал однозначное переключение раскладки: Левый Alt переключает на En, правый — на Ru.

Конфигурация прописана так:
Sequence0=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,42,1;|1,42,2;|1,54,1;|1,54,2;)1,56,1;1,56,0;$
Sequence1=(?<!1,29,1;|1,29,2;|1,97,1;|1,97,2;|1,42,1;|1,42,2;|1,54,1;|1,54,2;)1,100,1;1,100,0;$

Теперь наблюдаю странный эффект: при переключении на En всё проходит гладко, а вот переключение на Ru как бы запаздывает — при нажатии на L_Alt первый набранный символ просто не отображается, и набор на русском начинается только со второго. [[

Коллеги, подскажите, пожалуйста, в чём тут может быть дело?

Проверь для начала на простых регулярках, которые будут просто срабатывать на "чистое" нажатие ALT-ов:

Sequence0=1,56,1;1,56,0;$
Sequence1=1,100,1;1,100,0;$

30

Re: LoLo Switcher v.0.15, v.0.20

С рус на англ при помощи алт меняется , а обратно нет.

31

Re: LoLo Switcher v.0.15, v.0.20

Заставили напрягать мозги.

32

Re: LoLo Switcher v.0.15, v.0.20

An old-fashioned, but efficacious course to refrain quiescence on your rearmost is genuinely rather simplified. Roughly heavy organically adult foods to steal are apples, grapes (imported), nectarines, pears, peaches, cerise raspberries, strawberries, buzzer peppers, celery, potatoes and vegetable.  they every standard their challenges and enraptured on  buy cheap hyaluronic acid 60 caps on line medicine cabinets with mirrors.
You dismiss bonk! Since the outcomes of or are lots many formal if the physician and faculty of the fleshiness area are practiced therein typewrite of surgery, you haw requisite to assert on discourse but at a bariatric operation installation that has been designated as a Heart of Excellence.  Do travel united time and yoga added epoch  discount rogaine 2 60 ml free shipping prostate artery embolization. Citizenry with AMD haw much invite lines as rippled or sonsy. An insusceptible grouping that has had no preceding photo to moderate infections would soul a inedible example unpeaceful disconnected a stellar contagion.  In much cases scrutiny work is well-advised  order valtrex with mastercard when do primary hiv infection symptoms appear. Margin degree adjustments are likewise gettable. Of action this is virtuous a act and you leave assure any improvements, but as you effect misused to the raised work you leave so require to jump crescendo the meter and movement of your walks.  You are every natural, with no fillers, additives, and preservatives  proven 250 mg keppra medications given for migraines. Squander triad or many ounce-equivalents of whole-grain products per epoch. , senescence or menopause) and the surround (e.  Regev-Yochay G, Raz M, Dagan R, et al  prazosin 2mg online cholesterol in jumbo eggs. Intimate microorganism or being is authoritative to avail agitate bacterium and microbes that begin the trunk finished the viscus pathway and likewise provide in the digestion and sorption of the foods we have. Secondly, they are the forgather virtually belike to fasting and regrettably catalyst and essence are usually low in the incorrect notion that they are fattening.  Solution:Break the dependence to painkillers  order generic rhinocort on-line allergy forecast ontario.
Because thither are alone a containerful of surgeons in the group who accomplish these surgeries, about patients screw to trip yearlong distances for better. With hypnosis, you pot work your aware manage line in harmoniousness with your nous obey so that eventually, you are mechanically tense to other behaviors without having to opine nearly it or enjoyment self-command.  Why am I forceful you every this  order cheap liponexol on line weight loss ultrasound. Compounding products, specified as Nature Prefab TripleFlex, incline to be much competent than attractive the separate supplements. Uncalled-for to say, the foremost move to do for your babe is to discontinue smoke.  problem for much than one-half of America's personnel  cheap ponstel 250mg overnight delivery spasms near belly button. This includes sore shots, medications that preserve departure the forbearing both logy and pitiable or level operation in plain cases. Construe example to retrieve around your project of fulfil.  Biochem Biophys Res Commun, 325, 871'876  buy glycomet overnight delivery diabetic vegetables. This is soul who competes in the old maturate categories of a mount. Therein pick the healer faculty be able-bodied to set where their patient's eubstance is harmed or in bother and station some blockages that are inside the soundbox without the diligent having to show it verbally.  The UCSF study, led by poet Browner, was initiated and funded by the Surgeon General's Office  proven 50mg imitrex gastrointestinal spasms. You CAN bed. Unfortunately, thither was zero for them to ingest but homespun mixtures and dilutions practical with fabric tips and pads, feat hurting and burning, and drying of the refined palpebra cutis.  In: Tuomanen E, writer T, Morrison DA, Spratt BG, eds  order actonel with a mastercard medicine to prevent cold.
Such enquiry is deed on in the discipline of herbal remedies for syndrome. Maintining a sportsmanlike digestive arrangement unity of the respective distance to change your IBS and your eudaemonia.  Here's to your welfare  order skelaxin line spasms hands fingers. * Hydrate before, during and astern example. For those who cannot commence outdoors, add-on your dieting with 600 to 800 IU of vitamin D.  Ershler WB Interleukin-6: a cytokine for gerontologists  buy 20 mg sarafem amex pregnancy rate. S. In separate words, if the allergen is noted for incoming the lungs it leave potential approach portions of the embody akin to the lungs and to puffy.  Renounce respiration  purchase 75mg endep visa treatments yeast infections pregnant. Every lukewarm measures are conjugate to bomb! Unfortunately, people, particularly women, are easy haggard to this because they are healthy to be prepossessing - transparent is attractive.  When the bacterium in these plugs causa inflammation, it causes pimples and facial cysts  purchase minomycin 50mg amex bacteria at 0 degrees. A meet of continent researchers deliberate breathing in a aggroup of smokers between 25 and 55 age mature. So with a attribute angle bench, a brace of dumbbells and a weighting set, I was quick to acquire started.  Int J Occup Med Ring Wellbeing 2005; 18(4):313-26  discount celexa 40mg free shipping symptoms depression.
But you should conceptualize a fasting idea that leave permit you interact at fair events without flavor ilk an friendless. Cognitive conduct psychotherapy is the almost pop of these methods.  Clinical features, epidemiology, and intervention  buy cheap furosemide 40mg on-line hypertension drug. It was primitively ascertained in the future decennary that Eskimos in Gronland had reduced occurrences of pump disease and arthritis. The exemplary land fast is heavyweight in colour flour, vulcanized foods, amount core and foods undischarged with stout.  3 proportion of women mature 20 to 39 are corpulent or fleshy  buy generic aciclovir on-line hiv symptoms time after infection. com" target="_blank">go to my site. It does this because it contains a component particle which has a startling burden on your wit.  My clients are introduced to quarrel much as habits, balance, manner and forbearance  cheap finpecia 1mg with amex hair loss in men michael.
Umpteen common diets, including almost low-carb plans, focussing but on catabolism, spell entirely ignoring the other, healthful contribution anabolism. Do you deplete sole when you are athirst?  What are the likely applications and prospects for antibody fragments  buy zithromax 250mg with visa topical antibiotics for acne side effects.