Mohsen Pahlevanzadeh | 16 Dec 01:09 2014

aweful.key doesn't work

Dea all,
awsome version: 3.5

I wrote the following code:

      keyboard_layout = {"us","ir"}
      current_layout =  keyboard_layout[1]

switch = function()
    if current_layout == "us" then current_layout = keyboard_layout[2]
    else current_layout =  keyboard_layout[1] end
    os.execute("setxkbmap " .. current_layout)
    naughty.notify{text="Keyboard layout has been changed to " .. current_layout}


awful.key({ "Mod1"  }, "Shift_R", function()  switch() end )

When i call switch() itself, it works fine, But ALT+SHIFT doesn't work.


-- -- To unsubscribe, send mail to awesome-unsubscribe <at>

Mohsen Pahlevanzadeh | 13 Dec 04:59 2014

rc.lua development

Dear all,

Suppose you are develope with C++ or Python or bash :
in c++ :
you have cout << "blahblah" << endl;
in python :
print "blahblah"
in bash:
echo -e "blahblah\n"
or printf  command

in lua we have print command for printing.

Suppose I'm develope a software with a language programming  such as python and i'm forced to debug and put debug section  into my program such as :

print myvar

But i googled about rc.lua not awesome development, I found Xephyr  such as maemo on N900 cell phone.
But i have a question:
How can i print my variables or tables or etc in rc.lua?  Where? in pts? in tty? Please guide me....


-- -- To unsubscribe, send mail to awesome-unsubscribe <at>

William Tomlinson | 13 Dec 02:53 2014

Re: Two monitors, how to remove one list in one of them?

This is how I was able to do it using my rc.lua config. I'm running version 3.5.5 so it may be different from yours, but I think the only real difference here may be syntactical; the basic concept is the same. Also, I've put all of about 15 minutes into solving this problem and there is almost certainly a better way to do it, but this should get you headed in the right direction at least. As far as whether or not you should is another question entirely. I would highly recommend that you try using separate tag lists for each screen before you attempt to emulate the behavior of other, inferior window managers ;-)

To get the number keys to work properly, I added the bold for loops to the following awful.key definitions:

for i = 1, 10 do
    globalkeys = awful.util.table.join(globalkeys,
        awful.key({ modkey }, "#" .. i + 9,
                  function ()
                        for screen = 1, screen.count() do
                            local tag = awful.tag.gettags(screen)[i]
                            if tag then
        awful.key({ modkey, "Control" }, "#" .. i + 9,
                  function ()
                      for screen = 1, screen.count() do
                          local tag = awful.tag.gettags(screen)[i]
                          if tag then

Then to get the tag list to only show on one monitor, I added this if statement. The value "2" here corresponds to my primary monitor. You may have to set this to 1 or 2 depending on which monitor you want the tag list and run prompts to be on:

if s == 2 then

    Will Tomlinson

On Fri, Dec 12, 2014 at 7:02 PM, Javier Garcia <tirengarfio <at>> wrote:
Yes, I want to have just one tag for both monitors, what should I do?

El viernes, 12 de diciembre de 2014, William Tomlinson <watomlinson <at>> escribió:

Do you intend to "lock" both monitors to the same tag? The reason there are two tag lists is because they are independent of each other.

    Will Tomlinson

On Fri, Dec 12, 2014 at 3:02 PM, Javier García <tirengarfio <at>> wrote:

I have two monitors, so when I start awesome I get a list of tags in each monitor. How to remove the list in one of them?

Ubuntu 14.04 and 3.4.15

To unsubscribe, send mail to awesome-unsubscribe <at>
Javier García | 12 Dec 21:02 2014

Two monitors, how to remove one list in one of them?


I have two monitors, so when I start awesome I get a list of tags in 
each monitor. How to remove the list in one of them?

Ubuntu 14.04 and 3.4.15

Joren Heit | 12 Dec 11:48 2014

cairo painting turned slow

Hi all,

My homemade alt-tab implementation ( suddenly became exhaustingly slow after a recent (i.e. last couple of weeks) Debian upgrade. I think it's really the rendering-part with Cairo that is the cause. Switching windows has become a real pain. Previously, the wibox managed to update at such a rate that even previewed video's (youtube, vlc) could be rendered fluently, but now everything is laggy.

Any ideas/workarounds/confirmations would be welcome!

Mohsen Pahlevanzadeh | 12 Dec 04:52 2014

lua programming for awesome

Dear all,

I found lua and luac on my machine,

When i run :
luac ./config/awesome/rc.lua
I don't get any error.
But when i run :
lua ./config/awesome/rc.lua
I get the following error:
mohsen <at> debian:~$ lua .config/awesome/rc.lua
lua: .config/awesome/rc.lua:2: module 'gears' not found:
    no field package.preload['gears']
    no file '/usr/local/share/lua/5.2/gears.lua'
    no file '/usr/local/share/lua/5.2/gears/init.lua'
    no file '/usr/local/lib/lua/5.2/gears.lua'
    no file '/usr/local/lib/lua/5.2/gears/init.lua'
    no file '/usr/share/lua/5.2/gears.lua'
    no file '/usr/share/lua/5.2/gears/init.lua'
    no file './gears.lua'
    no file '/usr/local/lib/lua/5.2/'
    no file '/usr/lib/i386-linux-gnu/lua/5.2/'
    no file '/usr/lib/lua/5.2/'
    no file '/usr/local/lib/lua/5.2/'
    no file './'
stack traceback:
    [C]: in function 'require'
    .config/awesome/rc.lua:2: in main chunk
    [C]: in ?
However i installed awesome from repo and gears exist in :
What's start point of lua programming? (I learned lua tutrial(for startup))


-- -- To unsubscribe, send mail to awesome-unsubscribe <at>

Zum Testen | 9 Dec 18:59 2014

Eclipse: auto complete popups disappearing

Linux: 3.17.4-1-ARCH (Archlinux 64 Bit)
Awesome: v3.5.5 (Kansas City Shuffle)
Eclipse: Luna Service Release 1 (4.4.1)

While writing code with Eclipse, a popup box appears near the caret, to show me a list of possible completions. But after choosing one of the completions with the MOUSE, the popup box doesn't work any more.: The popupbox is simply disappearing when the mouse cursor hovers the completion list. I can select completions only with the keyboard.

It doesn't depend on the windows organizing layout: Whether I choose the floating layout or tiling layout or fullscreen layout... nothing helps.

I can use the default rc.lua: same problem.
Mohsen Pahlevanzadeh | 4 Dec 23:42 2014

attemp to index global right_layout(a nil value)

Dear all,


According to this page: ,
I add the following line to my rc.lua :
-- Add widget to your layout right_layout:add(kbdcfg.widget) --------------------------------------------

But i get the following errr:

attemp to index global right_layout(a nil value)

I have awesome 3.5

Mohsen Pahlevanzadeh | 1 Dec 03:21 2014

Xorg and my laptop

Dear all,

I migrate to awesome, But may be awesome depend on X, At first i provided xorg.conf with:
Xorg -configure

Then i changed InputClass such as :
Section "InputClass" Identifier "keyboard0" Driver "evdev" #MatchIsKeyboard "on" Option "XkbModel" "evdev" # Switch between layouts by pressing both shift keys Option "XkbLayout" "us,fa" Option "XkbOptions" "grp:shifts_toggle" EndSection //////////////////////////////// Then :
 cp /etc/xdg/awesome/rc.lua ~/.config/awesome/
Add the following change to it:
-- Keyboard map indicator and changer
    kbdcfg = {}
    kbdcfg.cmd = "setxkbmap"
    kbdcfg.layout = { "us", "fa", "Persian" }
    kbdcfg.current = 1  -- us is our default layout
    kbdcfg.widget = widget({ type = "textbox", align = "right" })
    kbdcfg.widget.text = " " .. kbdcfg.layout[kbdcfg.current] .. " "
    kbdcfg.switch = function ()
       kbdcfg.current = kbdcfg.current % #(kbdcfg.layout) + 1
       local t = " " .. kbdcfg.layout[kbdcfg.current] .. " "
       kbdcfg.widget.text = t
       os.execute( kbdcfg.cmd .. t )
   -- Alt + Right Shift switches the current keyboard layout
    awful.key({ "Mod1" }, "Shift_R", function () kbdcfg.switch() end),   
    -- Mouse bindings
        awful.button({ }, 1, function () kbdcfg.switch() end)
     -- end by me
Also i add the folloiwoing section to layout:

Then i create a ~.xinitrc and pu into it:
setxkbmap us,fa
Also i put into the following code in rc.lua: //////////////////////////////////////////// awful.key({ "Mod1" }, "Shift_R", function () kbdcfg.switch() end), ////////////////////////////////////////////// But i can't change my keyboard language to persian language, how can i do it? Where's my problem? Please give me a link from key codes.... --Regards Mohsen

-- -- To unsubscribe, send mail to awesome-unsubscribe <at>

Alexis Brenon | 28 Nov 21:13 2014

Keyboard keys not recognized after AwesomeWM binding

Hi dear Awesome users,

I bought a new laptop recently (Dell Inspiron 14-7437, on the French Dell site), and I tried it on Ubuntu where all worked well. So I decided to install ArchLinux with AwesomeWM. Most of devices work well (touchpad, touchscreen, keyboard backlight, etc...), but I'm issuing some problems with the keyboard.

While no binding is assigned to the combination : Meta + Shift + F1, xev output what expected as you can see here :

But as soon as I add a binding to this combination in my Awesome configuration :

awful.key({modkey, "Shift"}, "F1", volume.toggle)

The xev output changes -- -- and so the callback assigned to the binding isn't executed...

This weird behaviour happens with other keys like F1, F2, F3, Print Screen, or Up/Down arrow keys, but not on others like F11, F12 or Left/Right arrows...

I don't know from where it can come from... If anyone can help me to investigate this, it would be very welcome !! Thanks.


Austin Matherne | 25 Nov 02:47 2014

Working Cursor Themes

I stumbled across the section of the FAQ ( that states that "The reason your cursor fall-backs to default, over a wibox or the background, is because XCB does not support Xcursor yet." Searching the mailing list brings up conversations about it not working, as well. I found this strange since I've been happily using custom mouse cursors with awesome for years now without issue. The trick I've found to preventing the mouse cursor from being reset is to create a default theme that inherits from the actual theme I want to use, then when the cursor "resets" it does so to cursor that I'm already using.

Perhaps it's only working because of something unique to my system, but I'm attaching the index.theme that I use. Copy it to ~/.icons/default/index.theme and install the gruppled_black cursor theme ( or whatever other cursor theme you'd like (just swap out the inheritance in the default theme) into ~/.icons, as well.

Hopefully this works for others and the FAQ can be updated.

Austin M. Matherne
Attachment (index.theme): application/x-theme, 109 bytes