Re: New windows to parent tag/workspace

2014-01-28 Thread Elv1313 .
Hello, Tyrannical have an option to group transiant_for clients, tyrannical.settings.group_children = true but it is not what you want. The second option is to match by PID <-> PPID and make an awful rule based around it. It also suck (and you may have to loop multiple parent-PID levels in bloc

Re: Setting custom X properties for clients to preserve tags between awesome restarts

2014-02-23 Thread Elv1313 .
Hi there, I will see this week if I can undust the startup notification patch. With those 2 I should be able to implement proper Tyrannical serialization*. I guess I will have to save the state to a file or gsettings. I don't think I can trust X to properly preserve a serialized lua table. But wo

Re: Setting custom X properties for clients to preserve tags between awesome restarts

2014-02-23 Thread Elv1313 .
chlachter wrote: > On 23.02.2014 19:15, Elv1313 . wrote: > [...] > > But would it be better to simply be able to access random xprops from lua > > rather than having to patch awesome everytime we want a new one? > [...] > > The problem with accessing random X11 properties is that

Re: get layout icon

2014-03-22 Thread Elv1313 .
Hello, It is a bit cheap, but you have to query the theme the variables are: beautiful["layout"..your_layout_name] On 22 March 2014 18:07, Manuel Kasser wrote: > Hi, > > is there a possibility to get the layout-icon of a layout (assuming I > have the layout/layout-table at hand)? > > I was s

Re: lgi and awesome-3.5.2 - cpu usage - A dead horse?

2014-03-28 Thread Elv1313 .
Hi Harvey, The answer is not black and white, and we are definitely aware of the issue. The high CPU usage is due to many different thing. Up to ~October, before LGI added support for caching, it was the main bottleneck by far. But the reason it was a bottleneck is also partly because we abused it

Re: XDG compliant icon lookup

2014-04-09 Thread Elv1313 .
Gio has something built in for icon lookup, I am not sure if it is for .desktop only or it also work with such requests. I am not sure if we could use it instead of this. Maybe crafting a fake .desktop? On 9 April 2014 23:54, Harvey wrote: > Hey this works for me, can someone please test/merge?

Re: create client and hold it in variable

2014-04-14 Thread Elv1313 .
Yes, it is less or more the same code as Uli posted, but there is no need to use xproperty for that, startupid is being cached locally anyway. local wait_for_it = {} local pid,snid = awful.util.spawn("urxvt") wait_for_it[snid] = function() print("will be called") end client.connect_s

Re: Running lua code from a menu

2014-04-24 Thread Elv1313 .
Hello Robert, while it is possible to pass functions to awful.menu, if you are looking for more complex menus, you can take a look at Radical ( https://github.com/Elv13/radical ). It support a wide variety of menus are config options/ Best regards, Emmanuel On 24 April 2014 15:29, Robert Sharp

Re: taglist square resize : TODO or deprecated feature

2014-06-06 Thread Elv1313 .
Hi, It is possible with some hacks, see https://github.com/Elv13/blind (read the code about how to use a function instead of an image file to be able to stretch it) . But really the taglist is pseudo deprecated by now. What will replace it is still debated, but I personally have my own, more flexi

Re: taglist square resize : TODO or deprecated feature

2014-06-10 Thread Elv1313 .
anuel On 10 June 2014 08:57, Alexis Brenon wrote: > Hi, thanks for the answer. > > Is there a thread/discussion on the taglist successor somewhere ? I would > like to see the progress. > > Thanks. > > > 2014-06-06 18:57 GMT+02:00 Elv1313 . : > >> Hi, >> >&

Re: Keybinds to execute xdotool and emulate media keys

2014-07-30 Thread Elv1313 .
Hello, Awesome does have a fake_input function somewhere in the API. It might do the job for you. You can find examples here https://github.com/Elv13/repetitive/blob/master/macro.lua On 30 July 2014 05:01, Navi Charlotte wrote: > Hello, > > I am trying to emulate media keys in my keyboard by ass

Re: Systray padding and icon size

2014-08-17 Thread Elv1313 .
Hello, If you are using a very recent version of Awesome, then yes! See: https://github.com/awesomeWM/awesome/commit/07595ca6179083e302ae3596806261b8a71ab98b If you are using an older one, you can apply this patch to the C code. Other spacing, such as left, right, top and bottom padding can be a

Re: Don't let mouse pointer move to another screen

2014-08-19 Thread Elv1313 .
Hello, One cheap way that come to my mind right now is adding a 1px(+) invisible wibox (require compositing, or make it black) at the edge of the second screen, then use the mouse::enter signal to move the mouse back to the first screen. This is better than having a mouse watcher at all time as yo

Re: keep gvim from opening on panel bar

2014-08-19 Thread Elv1313 .
Hello, One simple way is to add the "ontop" argument to the wibox. This will keep the bar on top. An other thing you should do is to add a rule to disable size honoring for GVim and the terminals. See the FAQ for examples. Finally, make sure you used the "bottom" position property for the wibox in

Re: Writing Unit Tests for my config

2014-08-21 Thread Elv1313 .
Hello Alfredo, Some libraries are part of the Awesome C language core. Those currently cannot be loaded from a .so or .lua as they are built in the /usr/bin/awesome executable. While creating a .so could be possible and would even in some case be very, very cool, some code need to be written with

Re: Windows opening on wrong screen

2014-09-01 Thread Elv1313 .
Hello Andre, The current version of Awesome is 3.5.5. I cannot reproduce the issue there. The 3.4 version is not really supported anymore. You might want to try to upgrade. Please note that your config will need to be ported. The easiest way is to copy the new rc.lua then backport any changes you

Re: Windows opening on wrong screen

2014-09-02 Thread Elv1313 .
rrent active screen. This works for two of my three screens, but >>>>> not for the third. The same happens when I open a window via the >>>>> right-mouse-click menu from the desktop, or when I use the top left >>>>> button to bring up the menu. >>>

Re: PID of active window

2014-09-07 Thread Elv1313 .
Hello, I did some work on this a few years ago and made it work, kind of... There is no easy solution, but the trick is to use the window id ($WINDOWID in bash and also available in Awesome). I guess using some dark magic using /proc or ps you could get the PWD. But again, it wont be perfect and w

Re: Awesome Menu Applicaions

2014-09-14 Thread Elv1313 .
Hello, There is several ways of having it. The easiest is for debian user to use the debian menu generator for awful.menu. The script is somewhere in the wiki. The second option is https://github.com/terceiro/awesome-freedesktop . This module has a desktop and file menu that works relatively well

Re: Bind key to switch to specific app on any desktop/monitor

2014-09-15 Thread Elv1313 .
Hello, You can take a look at https://github.com/Elv13/repetitive It mostly does what you want and can also bind to tags. It has some issues and the macro system isn't really useful as is. Patches welcome On 16 September 2014 00:08, Adam Nielsen wrote: > Hi all, > > I'm wondering whether it's p

Re: Awesome and KDE

2014-09-23 Thread Elv1313 .
Hello 1) Transparency is managed by something called a "compositor". Awesome does not ship one by default. I suggest "Compton". Some KDE Plasma functions directly interact with KWin. You don't have KWin anymore, so that obvioustly wont work. Compton will restore some transparency, for everything e

Re: How to place widgets on desktop itself?

2014-10-09 Thread Elv1313 .
Actually, it is possible with Awesome directly. --You have to create a wibox first: local mydesktop_wibox = wibox({}) --then set a geometry: mydesktop_wibox.x = 100 mydesktop_wibox.y = 100 mydesktop_wibox.width = 100 mydesktop_wibox.height = 100 mydesktop_wibox.below = true mydesktop_wibox.visib

Re: How to place widgets on desktop itself?

2014-10-10 Thread Elv1313 .
Wow... Huston, we have a problem -- this work mydesktop_wibox.x = 100 mydesktop_wibox.width = 100 mydesktop_wibox.height = 100 mydesktop_wibox.y = 100 -- this doesn't work, have the problem described above mydesktop_wibox.x = 100 mydesktop_wibox.y = 100 mydesktop_wibox.width = 100 mydesktop_wibo

Re: internal manipulation of icon pixmap

2014-10-14 Thread Elv1313 .
Yes! Here is the desaturation code: https://github.com/Elv13/blind/blob/master/common/drawing.lua#L264 If you don't want to resize part of that function, just remove it. It add padding around the icon so it looks better. You can see the result of that function in the "alt+tab" dialog on screen 2

Re: attempt to call field 'font_map_get_default' crash

2014-10-14 Thread Elv1313 .
Hello, Honestly, if you have root access to the RHEL computer, I suggest you make a debian chroot (using debootstrap) in yout home directory for newer packages. RHEL5 is very old and EOLed for most users. I understand some users can upgrade and you probably can't do much about it. It is why a chro

Re: attempt to call field 'font_map_get_default' crash

2014-10-14 Thread Elv1313 .
ured all of the linker flags to > point to those libraries. I've had success with older versions of > awesome. > > > -Original Message- > From: Elv1313 . [mailto:elv1...@gmail.com] > Sent: Tuesday, October 14, 2014 10:13 AM > To: Zoch, Donald > Cc: aweso

Announcing Retrograde 1.0: A module to configure your widgets like Awesome 3.4.*

2014-10-20 Thread Elv1313 .
Hello everyone Awesome, I wrote this little module yesterday and I think some users will like it: https://github.com/Elv13/retrograde It allow you to setup layout using a declarative syntax again, something I missed since the 3.4.* days. It is rare I consider a module as complete and ready for t

Re: lua programming for awesome

2014-12-11 Thread Elv1313 .
Hello Mohsen, You have to execute "awesome". It will launch awesome and rc.lua On 11 December 2014 at 22:52, Mohsen Pahlevanzadeh wrote: > 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/

Re: rc.lua development

2014-12-12 Thread Elv1313 .
Hello Mohsen, If you use Xephyr, then just open a separated terminal, launch awesome from it and the print will be there. launch Xephyr :1 -screen 1280x800 in another term: DISPLAY=:1 awesome and it will work. Option 2 is to use ~/.xsession-error if you enabled it Option 3 is to use naughty.no

Re: Taglist colors

2015-01-28 Thread Elv1313 .
Hello mongoose, One easy way to change the taglist color is to wrap it in a wibox.widget.background widget. There is also multiple theme values: theme.taglist_fg_focus theme.taglist_bg_focus theme.taglist_fg_urgent theme.taglist_bg_urgent theme.taglist_bg_occupied theme.taglist_fg_occupied theme.

Re: Change wibox.widget.textbox() depends on the tag

2015-01-28 Thread Elv1313 .
Hello mongoose, This can be done using the signals. Please read http://awesome.naquadah.org/wiki/Signals On 28 January 2015 at 08:31, mongoose wrote: > Hello there! > > I have a question about textbox and tags. > > Is it possible to change textbox(whatever color, inside text< backround) > depend

Re: Interactive shell in textbox.

2015-01-29 Thread Elv1313 .
Hello, I do this on my own dev tag ( http://i.imgur.com/6asgxZ0.png ), but the implementation is quite different. Instead of native awesome widgets, I use urxvtc instances. But there is a twist, the Tyrannical ( https://github.com/Elv13/tyrannical ) Awesome extension "upgrade" awful.util.spawn to

Re: Can window decorations be rendered resolution independent?

2015-03-30 Thread Elv1313 .
Hello, In the default config, the size are based on the font size. So as this scale, other element should also scale. X11/xrandr support some DPI/PPI settings that should affect font (metric) size. On 30 March 2015 at 07:21, Felix E. Klee wrote: > For floating windows, I want the title bar and a

Re: [Hajime Branko Yamasaki Vukelic] Titlebar icons

2015-05-04 Thread Elv1313 .
Done (untested) https://github.com/awesomeWM/awesome/pull/215 I agree they look much better On 4 May 2015 at 11:36, Julien Danjou wrote: > I think these icons might be really better than the default one. Anyone > is up to the task of creating a pull request with those? > > (Hajim designed the aw

Re: KDE + Awesome WM: Problems since Plasma 5

2015-05-09 Thread Elv1313 .
Hello, Can you try the git-master version of Awesome? I think this problem has been solved a while back. Regards, Emmanuel On 9 May 2015 at 13:41, Martin Ueding wrote: > Hi everyone, > > I have used KDE 4 and Awesome WM 3.4 for a while on Kubuntu now. Since > the upgrade to Plasma 5, the next v

Re: Naughty Notifications on multiple monitors

2015-06-03 Thread Elv1313 .
This should help: local naughty = require('naughty') naughty.notify_ = naughty.notify naughty.notify = function (args,...) for i = 1, screen.count() do args.screen = i naughty.notify_(args,...) end end On 3 June 2015 at 10:42, Abraham Baker wrote: > I tried adding that code r

Re: Dual-Monitor Systray

2015-06-05 Thread Elv1313 .
Hello, Not really, this is an X11 limitations, they simply forbid it by design. Some WMs use compositing to "fix" this, but Awesome doesn't have it's own compositor. Regards, Emmanuel On 5 June 2015 at 16:43, Abraham Baker wrote: > Hi, > > Another multi-monitor question: is it possible to have

Fwd: Dual-Monitor Systray

2015-06-05 Thread Elv1313 .
; can make it possible ? > > Regards, > Jeferson > > On Fri, Jun 5, 2015 at 5:47 PM, Elv1313 . wrote: >> >> Hello, >> >> Not really, this is an X11 limitations, they simply forbid it by >> design. Some WMs use compositing to "fix" this, but Awesome do

Re: xbacklight does not work when called from awesome

2015-07-22 Thread Elv1313 .
Hello, The awesome mod4+r prompt run without a shell and withous many environment variables. Maybe if you add the command in a script with a #!/bin/bash header and call that, it will work. Else, you will have to figure out what's missing. On Jul 22, 2015 9:39 PM, "Alfredo Palhares" wrote: > Hell

Re: thoughts on substituting Lua with LuaJIT?

2015-08-03 Thread Elv1313 .
Yes, and it is worth it for more complex configs. Please note that it is already supported. You can take a look at Arch Aur "awsesome luajit" package to know how to turn it on. You will have to recompile LGI and Awesome with luajit to fully take advantage of the benefits. On Aug 3, 2015 3:05 AM, "K

Re: Execute command and wait until it's execution finishes

2015-08-10 Thread Elv1313 .
Hello, You can use my async module located here https://github.com/Elv13/awesome-configs/blob/master/utils/fd_async.lua It has lots of non-blocking async functions to do things like you want. However be warned many people report it segfault Awesome in some situations. This seem to be caused by va

Re: Execute command and wait until it's execution finishes

2015-08-12 Thread Elv1313 .
Please do not use os.execute in rc.lua, it is a blocking function and *ALL* application will lock until the function return. Even if the command is fast, they all add up and, milliseconds by milliseconds, make your computer less responsive. On Aug 11, 2015 2:31 PM, "Jayson Willson" wrote: > That'

Re: Execute command and wait until it's execution finishes

2015-08-12 Thread Elv1313 .
Yes, The one I posted above in this thread and using pipes to awesome-client, also mentionned in this thread. On Aug 12, 2015 12:53 PM, "Jayson Willson" wrote: > Yes, one man told me that. Is there any other way to run system command > and lua command one after another, but without freeze? I hav

Re: (KDE) Plasma 5 and Awesome

2015-08-24 Thread Elv1313 .
Hello, You can re-compile Awesome with the -fsanitize=address CFLAGS (export CFLAGS="$CFLAGS -fsanitize=address -ggdb"), Watch out, you have to clean the compilation directory/files first. This will print some useful information if awesome really crash (rather than quit by itself). You can also wr

Re: Dynamic tagging and tyrannical

2015-09-16 Thread Elv1313 .
Hello Fran, First of all, yes, Awesome can create tags dynamically, but you have to handle that yourself. Tyrannical is only a wrapper on top of awful.tag to make dynamic tags easier to manage. For conky, the property you are looking for is "sticky", it will tell Awesome/X11 to display the app in

Re: Passmenu gets stuck

2015-10-02 Thread Elv1313 .
Hello, This happen because os.execute is a blocking command. Awesome stops until the command return. When the GTK window is created, it ask the window manager to manage it. As Awesome is busy waiting for the command to finish, everything freeze. It is usually called a "deadlock" because both proce

Re: Can not switch client window with mouse click after screensaver

2016-03-06 Thread Elv1313 .
Hello, What is your Awesome version? Do you have any Qt apps running? If so, does it happen after you closed them and reload Awesome? Does it happen with the latest Awesome "git" version? On 7 March 2016 at 01:24, Hacksign wrote: > I can not switch client window with my mouse cursor click after

Re: Can't un-minimize windows

2016-04-22 Thread Elv1313 .
Hello Markus, The new Ubuntu release is the first (LTS) to ship with the 3.5 version of Awesome. This version has indeed some changes to how minimized clients work compared to 3.4. It is hard to minimize clients because GNOME 3 doesn't really want you to do that. In the default Awesome config, yo

Re: Can't un-minimize windows

2016-04-23 Thread Elv1313 .
Hello again, It indeed seems like a bug. Can you try to install either Awesome git version or revert to something before commit 02be8943 (like 3.5.6 from Ubuntu 15.10 package archive) and see what happen? Thanks for looking into this. On 23 April 2016 at 03:00, Markus Gutschke wrote: > I am usi

Re: How can I get top-level client in awesome ?

2016-07-04 Thread Elv1313 .
Hello, I think you are looking for this http://new.awesomewm.org/apidoc/classes/client.html#client:get (see the "stacked" argument) The doc display this a little wrong, this is a function, not a method, so use `local clients = client.get(false, true)`. On 4 July 2016 at 03:13, Hacksign wrote: >

Re: UPS Status [NUT]

2016-07-30 Thread Elv1313 .
Hello, First, if you use 3.4, please upgrade to something newer. 3.4 is 7 years old and is _not_ supported anymore and hasn't been since 2012. The git version of Awesome is currently recommended, the official release is 3.5.9 (from 2012 + bug fixes until ~2017). Then, please don't use io.popen. A

Re: Fixing Firefox focus stealing

2016-09-28 Thread Elv1313 .
Hi all, I created an helper function to make this kind of use case easier to handle https://github.com/awesomeWM/awesome/pull/1123 Please test. On 28 September 2016 at 10:39, Abraham Baker wrote: > That setting also helps if you're using an external RSS feed reader (e.g. > newsbeuter) to help

Re: Shutdown of this awesome mailing list

2016-10-27 Thread Elv1313 .
Hello, There is a subreddit for Awesome that's mostly used for questions. They usually get answered rather quickly. Psychon is also answering some stackoverflow questions. IRC seems to be the most popular way. We almost haven't seen questions on the ML in 3 years while IRC have at least one per da