Autor Téma: Xfce a prepinani rozlozeni klavesnice  (Přečteno 6038 krát)

_dworkin

  • Host
Xfce a prepinani rozlozeni klavesnice
« kdy: Srpen 24, 2011, 19:01:26 »
Pouziva nekdo v Xfce vic jak jedno rozlozeni klavesnice?

Nedari se mi zprovoznit prepinani US a QWERTY. Hledal jsem a existuje plugin xfce4-xkb-plugin http://www.michalsika.cz/blog/?p=659 Ten ale v mageii neni v repozitarich.

Jeste bych ozelel vlajecku na panelu, pokud by fungovala klavesova zkratka, ale druhe reseni pres xorg.conf http://www.abclinuxu.cz/blog/strange_blog/2006/2/prepinani-klavesnice-xfceplusx.org-6.9 se mi bohuzel nepodarilo zprovoznit..

Kód: [Vybrat]
cat /etc/X11/xorg.conf
# File generated by XFdrake (rev 262502)

# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerFlags"
    Option "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
    Load "v4l" # Video for Linux
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Plug'n Play"
   
    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
   
    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_120"  183.30  1360 1456 1608 1856  768 769 772 823  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_100"  149.78  1360 1456 1600 1840  768 769 772 814  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_85"  125.12  1360 1448 1592 1824  768 769 772 807  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_75"  108.75  1360 1440 1584 1808  768 769 772 802  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_60"  84.72  1360 1424 1568 1776  768 769 772 795  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1360x768_50"  69.61  1360 1416 1560 1760  768 769 772 791  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_120"  133.33  1280 1368 1504 1728  600 601 604 643  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_100"  108.88  1280 1360 1496 1712  600 601 604 636  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_85"  90.82  1280 1352 1488 1696  600 601 604 630  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_75"  79.00  1280 1344 1480 1680  600 601 604 627  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_60"  61.50  1280 1336 1464 1648  600 601 604 622  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x600_50"  49.44  1280 1312 1440 1600  600 601 604 618  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_120"  107.41  1024 1096 1208 1392  600 601 604 643  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_100"  87.51  1024 1088 1200 1376  600 601 604 636  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_85"  72.83  1024 1080 1192 1360  600 601 604 630  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_75"  63.20  1024 1080 1184 1344  600 601 604 627  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_60"  48.96  1024 1064 1168 1312  600 601 604 622  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x600_50"  39.55  1024 1048 1152 1280  600 601 604 618  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_120"  84.05  1024 1080 1192 1360  480 481 484 515  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_100"  68.41  1024 1080 1184 1344  480 481 484 509  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_85"  57.00  1024 1072 1176 1328  480 481 484 505  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_75"  49.40  1024 1064 1168 1312  480 481 484 502  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_60"  38.17  1024 1048 1152 1280  480 481 484 497  -HSync +Vsync
   
    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1024x480_50"  30.89  1024 1040 1136 1248  480 481 484 495  -HSync +Vsync
EndSection

Section "Device"
    Identifier "device1"
    VendorName "ATI Technologies Inc"
    BoardName "ATI Radeon HD 2000 and later (radeon/fglrx)"
    Driver "ati"
    Option "DPMS"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 24
   
    Subsection "Display"
        Depth 8
        Modes "1360x768" "1280x600" "1024x600" "1024x480"
    EndSubsection
   
    Subsection "Display"
        Depth 15
        Modes "1360x768" "1280x600" "1024x600" "1024x480"
    EndSubsection
   
    Subsection "Display"
        Depth 16
        Modes "1360x768" "1280x600" "1024x600" "1024x480"
    EndSubsection
   
    Subsection "Display"
        Depth 24
        Modes "1360x768" "1280x600" "1024x600" "1024x480"
    EndSubsection
EndSection

Section "InputDevice"
        Identifier "Keyboard0"
        Driver  "kbd"
        Option  "XkbRules" "xorg"
        Option  "XkbModel" "pc105"
        Option  "XkbLayout"     "us,cz"
        Option  "XkbVariant"    ",qwerty"
        Option  "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
    InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Funguje mi jen reseni z http://neverhood.etomite.cz/~churchy/7-jak-na-rozlozeni-klavesnice-v-xfce/ [Mageia] -> Nastaveni -> Klavesnice -> Rozlozeni a tam zrusit pouzit vychozi nastaveni systemu, pridat si klavesnice a prepinat zakliknutim aktivni, coz neni prilis pohodlne.

PS: Jeste funguje setxkbdmap us,cz -option grp:alt_shift_toggle

_dworkin

  • Host
Re:Xfce a prepinani rozlozeni klavesnice
« Odpověď #1 kdy: Srpen 24, 2011, 20:58:34 »
setxkbmap us,cz_qwerty -option grp:alt_shift_toggle
Je o neco bliz tomu co chci. Jeste zjistit kam to zapsat aby se to aktivovalo pri prihlaseni.

Peťoš

  • Administrator
  • Hero Member
  • *****
  • Příspěvků: 918
  • Karma: +17/-2
    • Zobrazit profil
    • Peťošův blog
Re:Xfce a prepinani rozlozeni klavesnice
« Odpověď #2 kdy: Srpen 25, 2011, 07:39:25 »
do ~/.profile a nebo ~/.bashrc ... podle toho, jestli chces aby se to aktivovalo jen jednou -- kdyz se poprve prihlasis (profile) a nebo vzdycky, kdyz otevres terminal (bashrc). Dalsi moznost je dat do do nastaveni Xfce>spousteni a relace> automaticke spusteni.
Do it or do not. There is no "try".
Nutné čtení pro všehny! Jak se ptát na fóru: http://wiki.mageia.cz/wiki:jak_se_ptat_na_foru

_dworkin

  • Host
Re:Xfce a prepinani rozlozeni klavesnice
« Odpověď #3 kdy: Srpen 25, 2011, 09:09:14 »
Dekuji moc za nakopnuti. Vybral jsem si to posledni reseni, protoze obcas pouzivam i KDE a ostatni Gnome tak aby nebyl nekdy konflikt. Chvilku jsem patral jak jsi to myslel s tim "Xfce ->" a nasel to v xfce4-settings-manager ( aneb [mageia] -> nastaveni -> Spravce nastaveni ) -> Relace a spusteni -> ..

A ono to opravdu funguje, co je naprosto prekvapujici je to, ze se na panelu objevila "ikonka" s "en" nebo "_qwe" (coz je prostredek z toho cz_qwerty co bylo zadano). Uzasny.

Peťoš

  • Administrator
  • Hero Member
  • *****
  • Příspěvků: 918
  • Karma: +17/-2
    • Zobrazit profil
    • Peťošův blog
Re:Xfce a prepinani rozlozeni klavesnice
« Odpověď #4 kdy: Září 08, 2011, 15:19:46 »
Udelal jsme plugin jmenem xfce-xkb-plugin do sveho repozitare. Staci jej pridat do panelu a nastavit. Tohle umi.
Do it or do not. There is no "try".
Nutné čtení pro všehny! Jak se ptát na fóru: http://wiki.mageia.cz/wiki:jak_se_ptat_na_foru