You are not logged in.

#1 2011-03-11 16:10:40

armintirand
Member
Registered: 2011-01-30
Posts: 23

persion keyboard layout in openbox??

hi
i installed open box ower the arch without any DE.i want to switch keyboard layout beetwin English and persian.
how is doing this work?
my another problem is running  open box in start up and run tint2 for openbox panel automatically?
please help me?

Offline

#2 2011-03-11 16:21:54

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: persion keyboard layout in openbox??

you can create a keybinding in xbindkeys which will run a script to change your layout between English and Persian.

simply add

tint2 &

in your ~/.config/openbox/autostart.sh file.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-03-11 16:35:19

armintirand
Member
Registered: 2011-01-30
Posts: 23

Re: persion keyboard layout in openbox??

i add this line
<keybind key="A-S-e">
      <action name="Execute">
        <command>setxkbmap us</command>
      </action>
    </keybind>
    <keybind key="A-S-d">
      <action name="Execute">
        <command>setxkbmap de</command>
      </action>
    </keybind>
to rc.xml file but i don't know why anything no change?
i don't know where line should add tint 2 & in autostart.sh???????????/

Offline

#4 2011-03-11 17:11:10

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: persion keyboard layout in openbox??

you would have to run the setxkbmap in a terminal. That's why I told you to create a script and then make it executable and run the script directly.

As for the autostarting of tint2 -- I already told you which file it needs to go into..I am not quite sure what you mean by where to add the line.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-03-11 17:35:45

armintirand
Member
Registered: 2011-01-30
Posts: 23

Re: persion keyboard layout in openbox??

what script i wold to create and in the script what command i need?
i dont know which line of autostart.sh add tint2 &  ?

Offline

#6 2011-03-11 17:58:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: persion keyboard layout in openbox??


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-03-20 09:48:59

armintirand
Member
Registered: 2011-01-30
Posts: 23

Re: persion keyboard layout in openbox??

hi
my open box auto start after login white this way
https://wiki.archlinux.org/index.php/Start_X_at_Boot
and i set keyboard layout chenger shortcut white
setxkbmap -layout us,ir -option grp:alt_shift_toggle:alt_shift_toggle
and edite openbox menu script file menu.xml
and add them script
setxkbmap us
setxkbmap ir
now when i press alt+shift my layout will be changed  if right click and select my layout menu, my layout changed but my shortcut not work after that.
what is my problem?
i want work white menu and shortcut

Offline

Board footer

Powered by FluxBB