Portál AbcLinuxu, 10. května 2025 13:22
awful.key({ "Control", }, "Shift_L", function () kbdcfg.switch() end),
awful.key({ "Alt_L", }, "Shift_L", function () kbdcfg.switch() end),Zvláštostí pak je, že když nastavím přepínání na klávesovou zkratku levý Alt+Shift, tak při stisku kombinace kláves se nic neděje, ale při stisku klávesy Shift se rozložení klávesnice přepne.
Řešení dotazu:
neni nahodou levy alt klavesa Modx kde x je nejake cislo? uz si to bohuzel presne nepamatuju mozna Mod1
KeyRelease event, serial 35, synthetic NO, window 0x4200001, root 0xa8, subw 0x0, time 755481, (-574,886), root:(391,914), state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 35, synthetic NO, window 0x4200001, root 0xa8, subw 0x0, time 759108, (-574,886), root:(391,914), state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
Example globalkeys binding that will switch the layout:
-- Alt + Right Shift switches the current keyboard layoutawful.key({ "Mod1" }, "Shift_R", function () kbdcfg.switch() end),
jsem se uklikl to mělo patřit pod muj koment..proste zkus ten Mod1 misto Alt_L. Pokud jsi ho zkousel a nepomohlo tak se omlouvam za opakovani :) v awesome je totiz bezne levy alt jako Mod1 alespon u me byl
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.