cedlemo | 20 Dec 15:04 2014
Picon

show a wibox with a timeout

Hi,

I want to display a wibox (with my taglist) just for 2 or 3 seconds when 
the current desktop change.
I have already a working solution but I would like to know if there is 
another way to do it.

here is the function that I use:

function taglist_wibox_show_hide(box)
    mytimer = timer({ timeout = 0 })
    mytimer:connect_signal("timeout", function ()
                                         print("show")
                                         box.visible=true
                                         mytimer:stop()
                                      end
                           )
    mytimer:start()
    mytimer1 = timer({ timeout = 2 })
    mytimer1:connect_signal("timeout", function ()
                                           print("hide")
                                           box.visible=false
                                           mytimer1:stop()
                                       end
                            )
    mytimer1:start()
end

Any ideas ?

(Continue reading)

Mark Eisenblaetter | 20 Dec 13:03 2014
Picon

HI-DPI Notebook

hi list,

i want to try awesome but i am don't  know how i can make it HIDPI compatible?

and even much worse, on work i have external normal dpi displays. so i need to switch it fast, or better have both!!

it think this is really a bit thing, the major desktopmanager are not so good in handling hidpi or mix dpi.

thanks in advanced,

mark
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()
    naughty.notify{text=current_layout}
    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}

end 

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

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

--Regards
Mohsen

-- -- To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.

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 :

###DEBUG
print myvar
###END_DEBUG

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....

--Regards
Mohsen


-- -- To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.

William Tomlinson | 13 Dec 02:53 2014
Picon

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.tag.viewonly(tag)
                            end
                        end
                  end),
        awful.key({ modkey, "Control" }, "#" .. i + 9,
                  function ()
                      for screen = 1, screen.count() do
                          local tag = awful.tag.gettags(screen)[i]
                          if tag then
                             awful.tag.viewtoggle(tag)
                          end
                      end
                  end),

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
    left_layout:add(mylauncher)
    left_layout:add(mytaglist[s])
    left_layout:add(mypromptbox[s])
end


--
 
    Will Tomlinson

On Fri, Dec 12, 2014 at 7:02 PM, Javier Garcia <tirengarfio <at> gmail.com> 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> gmail.com> 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> gmail.com> wrote:
Hi,

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> naquadah.org.
Javier García | 12 Dec 21:02 2014
Picon

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

Hi,

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
Picon

cairo painting turned slow

Hi all,

My homemade alt-tab implementation (http://awesome.naquadah.org/wiki/Familiar_Alt_Tab) 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!

Cheers,
Joren
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/gears.so'
    no file '/usr/lib/i386-linux-gnu/lua/5.2/gears.so'
    no file '/usr/lib/lua/5.2/gears.so'
    no file '/usr/local/lib/lua/5.2/loadall.so'
    no file './gears.so'
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 :
//////////////////////////////////////////////////////
/usr/share/awesome/lib/gears
/usr/share/awesome/lib/gears/init.lua
/usr/share/awesome/lib/gears/wallpaper.lua
/usr/share/awesome/lib/gears/object.lua
/usr/share/awesome/lib/gears/debug.lua
/usr/share/awesome/lib/gears/sort.lua
/usr/share/awesome/lib/gears/surface.lua
/usr/share/awesome/lib/gears/color.lua
///////////////////////////////////////////////////////
What's start point of lua programming? (I learned lua tutrial(for startup))

--Regards
Mohsen

-- -- To unsubscribe, send mail to awesome-unsubscribe <at> naquadah.org.

Zum Testen | 9 Dec 18:59 2014
Picon

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,

Hello,

According to this page: https://awesome.naquadah.org/wiki/Change_keyboard_maps ,
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

Regards
Mohsen
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 )
    end
   -- Alt + Right Shift switches the current keyboard layout
    awful.key({ "Mod1" }, "Shift_R", function () kbdcfg.switch() end),   
    -- Mouse bindings
    kbdcfg.widget:buttons(awful.util.table.join(
        awful.button({ }, 1, function () kbdcfg.switch() end)
    ))
     -- end by me
////////////////////////////////////////////////////////
Also i add the folloiwoing section to layout:
/////////////////////////
right_layout:add(kbdcfg.widget)
//////////////////////////////////////////

Then i create a ~.xinitrc and pu into it:
//////////////////////////////////
#!/bin/sh
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> naquadah.org.


Gmane