You are not logged in.
hello guys, I recently installed Awesome wm and I tried finding a way to add the Hebrew keyboard layout to Awesome, I read about it in the wiki and tried something but faild to successed adding the layout. I will be glad if you could show me an easy way to add the layout to Awesome and if I could switch between the layouts with Ctrl+Shift it would be great.
Thenx in advance ![]()
(Arch with Awesome 3.5.1)
Offline
I'm not sure how you make it with the hebrew, but I have added Norwegian, and I guess you can do the same with hebrew just substituting the language.
In my .xinitrc where I have my exec awesome command, I place above the exec:
setxkbmap -layout no &
There is certainly several ways to do this though. Just switch "no" with what you need, since "no" indicates Norwegian. I'm not sure about some way to switch between layouts, but I guess you could make a key for it in the rc.lua awesome config.
Last edited by MrElg (2013-09-25 21:45:36)
Offline
I'm not sure how you make it with the hebrew, but I have added Norwegian, and I guess you can do the same with hebrew just substituting the language.
In my .xinitrc where I have my exec awesome command, I place above the exec:
setxkbmap -layout no &
There is certainly several ways to do this though. Just switch "no" with what you need, since "no" indicates Norwegian.
Hey, thenx for answering.
About your option, wouldn't Hebrew will be my only layout? I want English to me my default one and to be able to switch between Hebrew and English with key bondong.
Again, thenx for helping.
Offline
Oh, so English as default is fine, then you should let your .xinitrc be. You probably want to set a default option in your rc.lua. Have you used rc.lua at all?
Offline
Oh, so English as default is fine, then you should let your .xinitrc be. You probably want to set a default option in your rc.lua. Have you used rc.lua at all?
I baraly used it - I added a uploading and downloading speed widgit and added a few keybinding which I deleted. Thats probably it...
Offline
You should probably manage then. There is a pretty nice guide on the awesome wiki page. It explains it pretty much in detail, so I don't think you get much problem with that. The awesome wiki is pretty good, so I recommend bookmarking it for later use.
http://awesome.naquadah.org/wiki/Change_keyboard_maps
Add what you need from Widget code (awesome 3.5) (widget if you want that too) but also add Keyboard bindings which is shown later down on the page.
Last edited by MrElg (2013-09-25 22:16:17)
Offline
You should probably manage then. There is a pretty nice guide on the awesome wiki page. It explains it pretty much in detail, so I don't think you get much problem with that. The awesome wiki is pretty good, so I recommend bookmarking it for later use.
http://awesome.naquadah.org/wiki/Change_keyboard_maps
Add what you need from Widget code (awesome 3.5) (widget if you want that too) but also add Keyboard bindings which is shown later down on the page.
Thenx a lot for the help, I almost did it.
I added the widgit but I'm having problems making the binding because the binding needs a string.
I tried
awful.key({ modkey , }, "Shift" , function () kbdcfg.switch()
awful.key({ modkey , }, "Shift_R" , function () kbdcfg.switch()
awful.key({ modkey , "Shift"} , function () kbdcfg.switch()
awful.key({ modkey , "Shift"}, "" , function () kbdcfg.switch()
and I didn't managed to create the binding of mod+shift.
Can you try and write this line for me? Alt Shift is better but I couldn't manage to do it either..
Again, tons of thenx..
Offline
Sorry I left you for the night, the net brokw down.
I guess you managed to do the first part then. If this is correct, you only need this second part. If this is a hazzle, we should probably look at this code too.
I wonder about one thing though. When you cannot create the key, is is just non-functional? Or do you get the rc.lua-error when reloading awesome as well?
It is perhaps buest suited to place them amongst the other key bindings. I just tested it for my set up. So here it how it goes.
In the section key bindings, in which my new addition is the latest line. Sorry for all the other code at the first, but it is kind of important where you place it.
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function () mymainmenu:show() end),
awful.key({ modkey, }, "Shift_R", function () kbdcfg.switch() end),Be sure to have also the end part of the expression, and that you place a comma in the end, so it does not interfere with the next command. The terms inside the brackets is keys to hold while the term outside the brackets are pressed. You can choose what you like, but just take notice it the key combination is already in use. However, the combination for the alt key is less intuitive, it is "Mod1". So if you want the combination of Alt+Shift_R you should rather go for
awful.key({ "Mod1", }, "Shift_R", function () kbdcfg.switch() end),Or use Shift_L if that is even more convenient.
I hope it works this time. Good luck.
Last edited by MrElg (2013-09-26 07:14:38)
Offline
Your code did it ![]()
Thenk you very much...
I also confused left and right (English is my second languge and I always had a problem for no damn reason to confuse left and right so perhaps I managed to do the binding earlier but pressed the wrong shift..
So again thenk you very much, you helped a lot ![]()
Offline