Stop new windows covering the wibox [floating layout]

2012-01-20 Thread David Sorkovsky
I'm thought there was a question about this a short while ago and I had the
same desire - Here's what I did to fulfil my needs...
 
Find the following section...
 
-- 
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)"
 
Skip down a bit further to...
 
-- Put windows in a smart way, only if they does not set an initial
position.
if not c.size_hints.user_position and not
c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end

Add the following lines after that...
 
if not (c.name == "david" or c.name == "Guake!") then  --
applications you do NOT want to affect
--naughty.notify({ text=c.name })
local geometry = c:geometry()
if geometry.y < mywibox[c.screen]:geometry().y +
mywibox[c.screen]:geometry().height then
geometry.y = mywibox[c.screen]:geometry().y +
mywibox[c.screen]:geometry().height + c.border_width
c:geometry(geometry)
end
end

 
Note 1: Assumes "top" - change the .y & .height to .x & .width for "left" or
change the logic for "bottom" or "right"
 
Note 2: Name of the wibox array is "mywibox" - change to suit yours ;-)
 
 
 
Regards
 
 
Dave
 
 


RE: awesome in Linux Action Show S04E20

2012-01-30 Thread David Sorkovsky

 
I agree - thanks for sharing the video link - was good to see!

100% agree that awesome is a perfect low memory, powerful GUI for a server
and the customization is lovely - could have a few better "getting started"
guides/tutorials, but once you take the lid off, it isn't that hard!

I have even just setup Ubuntu Server with Awesome on a BeagleBoard xM [ARM]
- Especially sweet given that limited RAM!


Regards, 

Dave

-Original Message-
From: Satisficer [mailto:satisfi...@insideppf.com] 
Sent: Tuesday, 31 January 2012 7:04 AM
To: awesome@naquadah.org
Subject: Re: awesome in Linux Action Show S04E20

On 2012-01-30, Julien Danjou  wrote:
>
> On Mon, Jan 30 2012, Piotr Ozarowski wrote:
>
>> FYI: 
>> http://www.jupiterbroadcasting.com/16411/awesome-window-manager-las-=
> s20e04/
>
> It starts at 0:50:00, and it's very fun. :)

I thought I had defeated the urge to tinker with my setup, but after
watching this I'll spend the next 2 days screwing around with widgets.

Thanks for the link!


--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: awesome session via VNC and mod4 key

2012-03-06 Thread David Sorkovsky

 
G'Day Alexey,
 
I also use VNC - possibly not in the same way but I hope my comment helps...
 
Using Awesome, "Remmina" as my RDP client and a number of VirtualBox VMs 
running "headless".
 
Remmina is setup to show the taskbar icon which gives a nice shortcut menu to 
my VMs [I have a tweak in my LUA to "kill" Remina on the window activation - 
just kills the window but leaves the icon ;-) ]
 
When an RDP session starts they are in fullscreen and usually do not capture 
the "mod-4 + #" combination, allowing me to open several sessions on different 
tabs and easily flick between them. However (and this is the bit that I expect 
may help you), sometimes the "mod-4 + #" combination does not seem to work - 
For me, "Right-Control + F" tells Remmina to show it's menu which has a handy 
"keyboard capture" icon. Clearing the capture icon has always resolved the key 
capturing for me and then I return to full-screen
 
 

Regards
 
Dave
 
 
David Sorkovsky
 
home: +61 2 9945 3800
office: +61 2 9491 5255
mobile: +61 409 162 963

 

> Date: Tue, 6 Mar 2012 20:34:47 +0200
> From: ale...@alexey-kv.info
> To: awesome@naquadah.org
> Subject: awesome session via VNC and mod4 key
> 
> Hello,
> 
> I'm using awesome via VNC recently. I've a problem with mod4 binding
> while I'm using vncviewer under other awesome session - I don't know
> how I can bypass mod4 key to the vncviewer client (mod4 is handled by
> awesome session where vncviewer is running). Does somebody know how I
> can do that?
> 
> Thanks
> 
> -- 
> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
  

Awesome - The name!

2012-03-06 Thread David Sorkovsky

 
 
While I'm sure everyone on this list will agree, Awesome is AWESOME! 
 
 
My only complaint is the name... 
 
  Googling "awesome" finds way to much and mostly unrelated!
 
  Googling "awesome window manager" helps, but could be better... 
 
  Googling "AwesomeWM" helps a lot, but but it still misses those results that 
don't contain the somewhat common addtion of "WM" that gets added by "those in 
the know"... 
 
 
Not sure if there is a better place to post this, but I'd like to suggest 
a minor change to the name. 
 
 
I'm sure there are plenty of options, but I'd like to start the ball rolling by 
suggesting "AwesomeWM" as the name. Nothing dramatic, just something to make it 
easier to colate all the awesome information on the internet - who knows if I 
used awesome in that sentence as the name or as an adjective? 
 
 
PS: If this suggestion is better palced elsewher, I'm happy to hear!
 
 

Regards
 
Dave
 
 
David Sorkovsky
 
home: +61 2 9945 3800
office: +61 2 9491 5255
mobile: +61 409 162 963
  

RE: Awesome - The name!

2012-03-07 Thread David Sorkovsky

Hi Alexander,

While I understand your comment, I must say that there is a lot more out
there than your (a) & (b) and (no disrespect intended) the awesome wiki is
not so awesome :-( 

I have spent MANY hours searching for other snippets of information and they
are what allowed me to get through the initial getting started barrier. I'm
sure that many people try Awesome but end up stumbling and move on - their
loss, but our loss as well as we lose some potentially good contributors!

Anyway - It was just throwing out my 2c to see what people thought


PS: I don't think that adding WM to the "official" name and not actually
changing the code would be a pretty reasonable idea.



Regards 

David


-Original Message-
From: Alexander Yakushev [mailto:yakushev.a...@gmail.com] 
Sent: Wednesday, 7 March 2012 4:40 PM
To: awesome@naquadah.org
Subject: Re: Awesome - The name!

Hello, David,

I understand what you are talking about. I also have a frustration googling
awesome. But the thing is there is no much data on awesome around the web
except:
a) awesome wiki
b) this mailgroup

So changing the name so the googling of a dozen of pages becomes easier
seems too radical to me. This issue was to be thought in the first place,
not after five years passed.

Regards,
Alexander

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Who is interested in

2012-05-14 Thread David Sorkovsky

 
Being on this mailing list, I see awesome ideas being discussed and awesome 
help going out from some truely awesome people, but as with any community, 
there are always those who disparage, berate, belittle, etc.
 
IMHO the Awesome Window Manager [AwesomeWM ;-)] would be much more awesome if 
there was more documentation, it was more user friendly, it was easier to find, 
etc, etc. This is best achieved by growing the community, which is best done 
through positive interaction. As such, I'd like to encourage everyone to 
remember to see the positives in everthing and everyone and to offer positive 
suggestions and encouragement. As the saying goes - If you don't have anything 
nice to say, don't say anything at all.
 

Kind regards
 
Dave
 
  

RE: Restore the Ctrl-Alt-Enter behaviour when using rdesktop

2012-05-29 Thread David Sorkovsky

 
Same as Will, I use Remina with little to no problem ;-)

Regards
 
Dave
 
 
David Sorkovsky
 
home: +61 2 9945 3800
office: +61 2 9491 5255
mobile: +61 409 162 963

 



Date: Tue, 29 May 2012 09:26:51 -0500
Subject: Re: Restore the Ctrl-Alt-Enter behaviour when using rdesktop
From: willru...@gmail.com
To: awesome@naquadah.org

I use remmina for remote desktop, as well as vnc when i have to, and I don't 
have the issues with Mod key switching, it works just fine.


On Tue, May 29, 2012 at 9:22 AM, quanta  wrote:

Sorry for my subject. I though of 'Enter' but I manually type 'Del' (due
to its popularity)

The problem is MOD4 + 1-9 doesn't work in `rdesktop -f -K -u  `.
It shows the Start dialog in Windows instead of switch to corresponding
tag in Awesome.

On 05/29/2012 08:12 PM, Gregor Zattler wrote:
> Hi quanta,
> * quanta  [29. May. 2012]:
>> Thanks for your info. I should read the man page first.
>>
>> But unfortanately, it doesn't work. Have you tested this option?
> Yes, last line of my posting.  I do not know how Ctrl-Alt-Del
> behaves in rdesktop, as I said I use the awesome key bindings,
> e.g. MOD4 + 1 to switch to tag 1 while rdesktop is on tag 6.
>
> HTH, Gregor
>
>> On 05/29/2012 03:30 PM, Gregor Zattler wrote:
>>> Hi quanta, awesome-users,
>>> * quanta  [29. May. 2012]:
>>>> I usually remote desktop to a Windows at full screen mode with `rdesktop
>>>> -f`.
>>>> To switch back to the normal screen, just press Ctrl-Alt-Enter
>>>> After using Awesome WM, Ctrl-Alt-Enter doesn't work any more, the screen
>>>> blink in a second and go back,
>>>> so I must disconnect the session to go back to Linux.
>>> From the rdesktop man page:
>>>
>>> -K Do not override window manager key bindings.  By
>>>default rdesktop attempts to grab all keyboard input when
>>>it is in focus.
>>>
>>> This allows to use the awesome key bindings to go to different
>>> tags, minimize the window etc.
>>>
>>>> Any one get this problem?
>>> Me.  Solved it with this switch.

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

  

RE: Installing awesome from git under Ubuntu precise?

2012-06-09 Thread David Sorkovsky

 

>So: But how can I use my new installation? I could specify the path to the
new awesome in the xsessions file to start it, but I assume that
awesome-client will then be the one installed system wide?

If you want to switch between different versions, you could simply place
"links" in the default directory...

  To use V1, insert links to the V1 directory. 
  To use V2, replace V1 links with V2 links. 

  Script the swapping of the links so you have a quick & easy changeover



-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: change gnome-sound-applet icon in awesome

2012-07-17 Thread David Sorkovsky
Try changing

This...

>   volumecfg.mixercommand(" sset " .. volumecfg.channel .. " 
>toggle")

To this...

>   volumecfg.mixercommand(" sset " .. volumecfg.channel .. " toggle") 


PS: Here's my version which has 4 different icons depending on the level,
click toggles mute, wheel up/down over icon changes volume & tool tip gives
actual value...

-- Volume widget
myvolume = {}
myvolume.cardid  = 0
myvolume.channel = "Headphone"  -- edit as appropriate [often "Master"]
myvolume.widget = widget({ type = "imagebox", name = "myvolume.widget" })
myvolume.tooltip = awful.tooltip({ objects = { myvolume.widget },})

myvolume.mixercommand = function (command)
local fd =
io.popen("amixer -c " .. myvolume.cardid .. " " .. command)
local status =
fd:read("*all")
fd:close()

local volume =
string.match(status, "(%d?%d?%d)%%")

status =
string.match(status, "%[(o[^%]]*)%]")
if
string.find(status, "on", 1, true) then
if
tonumber(volume) < 50 then 

myvolume.widget.image = image(awful.util.getdir("config") ..
"/icons/audio-volume-low.png")
elseif
tonumber(volume) < 100 then 

myvolume.widget.image = image(awful.util.getdir("config") ..
"/icons/audio-volume-medium.png")
else 

myvolume.widget.image = image(awful.util.getdir("config") ..
"/icons/audio-volume-high.png")
end
else

myvolume.widget.image = image(awful.util.getdir("config") ..
"/icons/audio-volume-muted.png")
end


myvolume.tooltip:set_text(volume .. "%")
end

myvolume.update = function () myvolume.mixercommand("sget " ..
myvolume.channel) end
myvolume.up = function () myvolume.mixercommand("sset " .. myvolume.channel
.. " 1%+") end
myvolume.down = function () myvolume.mixercommand("sset " ..
myvolume.channel .. " 1%-") end
myvolume.toggle = function () myvolume.mixercommand("sset " ..
myvolume.channel .. " toggle") end
myvolume.widget:buttons({
button({ },
4, function () myvolume.up() end),
button({ },
5, function () myvolume.down() end),
button({ },
1, function () myvolume.toggle() end)
})

myvolume.update()


David Sorkovsky

+61 468 478 438


-Original Message-
From: pyLemon [mailto:leeway1...@gmail.com] 
Sent: Tuesday, 17 July 2012 11:21 PM
To: Abhijeet R
Cc: awesome@naquadah.org; David Gomes
Subject: Re: change gnome-sound-applet icon in awesome

thanks for your quick reply Abhijeet, and thanks David Gomes. I have google
that page. haha, And I have seen someone has successful changed that icon.
but I don't know how..

this is my volume applet config

-- Volume widget

volumecfg = {}
volumecfg.cardid  = 0
volumecfg.channel = "Master"
volumecfg.widget = widget({ type = "textbox", name = "volumecfg.widget",
align = "right" })

volumecfg_t = awful.tooltip({ objects = { volumecfg.widget },})
volumecfg_t:set_text("Volume")

-- command must start with a space!
volumecfg.mixercommand = function (command)
   local fd = io.popen("amixer -c " .. volumecfg.cardid .. command)
   local status = fd:read("*all")
   fd:close()

   local volume = string.match(status, "(%d?%d?%d)%%")
   volume = string.format("%3d",
volume)
   status = string.match(status, "%[(o[^%]]*)%]")
   if string.find(status, "on", 1, true) then
   volume = volume .. "%"
   else
   volume = volume .. "M"
   end
   volumecfg.widget.text = volume
end
volumecfg.update = function ()
   volumecfg.mixercommand(" sget " .. volumecfg.channel) end
volumecfg.up = function ()
   volumecfg.mixercommand(" sset " .. volumec

[Just Sharing / Discussion Point] Volume Widget Mouse Actions...

2012-07-26 Thread David Sorkovsky

Hi All,

Just a quick share on the volume widget [Farhavens volume widget:
http://awesome.naquadah.org/wiki/Farhavens_volume_widget]


All examples have something like the following code...

myvolume.widget:buttons(
{
button({ }, 4,
function () myvolume.up() end),
button({ }, 5,
function () myvolume.down() end),
button({ }, 1,
function () myvolume.toggle() end)
}
 )


I noticed a warning that the function "button" was no longer supported but
all still worked and I hadn't done anything about it until now. 

As seems to be the unfortunate norm with awesome & lua, the information is
there somewhere, but damn hard to find. After a lot of searching I
eventually resorted to scanning other widgets I had and once I could see
what they did, I implemented it on mine. The warning is gone and I presume
that all is now valid ;-)


The new warning free code...

myvolume.widget:buttons(
awful.util.table.join(

awful.button({ }, 4, function () myvolume.up() end),

awful.button({ }, 5, function () myvolume.down() end),

awful.button({ }, 1, function () myvolume.toggle() end)
   )
 )



PS: I'm guessing it would be worth adding this to the bottom of that wiki
entry or adding a new one regarding the new way of adding buttons to widgets
that refers to the deprecation of the button() function [Volunteer? Me?].

PPS: If there is a better way, I'm happy to hear of it as well ;-)



Cheers,


Dave


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Any key binding to collapse the "a" menu?

2012-07-28 Thread David Sorkovsky

Awesome Bryan - Thanks! 

I've updated my rc.lua with it just so that I can simply press escape to
close the menu! Cursor keys work as well, but the escape key was the one I
really wanted ;-)

One minor change though - It worked better for me without the following
line...
> mylauncher:buttons(), 


Cheers,

Dave

-Original Message-
From: Bryan Gardiner [mailto:b...@khumba.net] 
Sent: Sunday, 29 July 2012 5:44 AM
To: awesome@naquadah.org
Subject: Re: Any key binding to collapse the "a" menu?

On Sat, 28 Jul 2012 18:53:24 +0100
Javier Garcia  wrote:

> Hi,
> 
> as you know by default there is a menu on the upper left corner that 
> show the apps.
> 
> Is there any key binding to collapse that menu after open it with the 
> mouser?
> 
> Javi

Hi Javier,

I'm looking at my Awesome 3.4.9 files, so forgive me if there are any
differences to your version.

There are three ways to open the app menu: clicking on the launcher in the
top-left, right-clicking on the desktop, or Mod+w.  By default
Mod+w allows keys to be used to navigate the menu, whereas the other
two don't.  But we can change this!

Right-clicking on the desktop is easy to change.  Search for

> root.buttons(awful.util.table.join(
> awful.button({ }, 1, function () mymainmenu:toggle() end),

in your rc.lua and change "toggle()" to "toggle({ keygrabber = true })".  To
make the launcher grab keys as well, we can change this:

> mylauncher = awful.widget.launcher({ image =
image(beautiful.awesome_icon),
>  menu = mymainmenu })

to this:

> mylauncher = awful.widget.launcher({ image =
image(beautiful.awesome_icon),
>  command = "" }) 
> mylauncher:buttons(awful.util.table.join(
> mylauncher:buttons(),
> awful.button({ }, 1, function ()
>mymainmenu:toggle({ keygrabber = true })
>  end)))

Then, right-arrow can be used to open submenus and applications, and left
can go back and close.

Cheers,
Bryan

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Release next major version - how bad could it be?

2012-10-13 Thread David Sorkovsky
 

Same here - Definitely need title bars!
 
 
Regards,
 
 
David
 
 
-Original Message-
From: "Jérôme M. Berger" [mailto:jeber...@free.fr] 
Sent: Saturday, 13 October 2012 7:38 PM
To: awesome@naquadah.org
Subject: Re: Release next major version - how bad could it be?

Alexander Yakushev wrote:
> What is so important with those titlebars? I mean everyone (wild 
> guess) who wanted titlebars in their WM had already moved to Openbox 
> or something; or at least they use their own half-baked titlebars.

Wrong. I want titlebars and I use awesome (v3.4.13). I'd be pretty
unhappy if the next stable release didn't have them.

Updating my config files does not bother me. Loosing functionality
does.

Jerome
--
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr



--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: What should titlebars be like? (was: Release next major version - how bad could it be?)

2012-10-21 Thread David Sorkovsky

 
The contents for me would be... High Priority: Name & Close, Medium Priority: 
Maximize & Minimize, Low Priority: Icon. 
 
Indication of mode of the window would probably be nice as well (Medium).
 
While mouse click on the window with a key press can achieve the same purpose, 
clicking on the titlebar to drag a floating window is my most common action.
 

Regards
 
Dave
 
 
David Sorkovsky

+61 468 478 438

 

> Date: Sun, 21 Oct 2012 20:47:16 +0200
> From: psyc...@znc.in
> To: awesome@naquadah.org
> Subject: What should titlebars be like? (was: Release next major version - 
> how bad could it be?)
> 
> On 14.10.2012 16:12, Alexander Yakushev wrote:
> [...]
> > In order to start writing real titlebar widgets first we should decide 
> > what for people want titlebars in first place. Minimize/maximize/close 
> > buttons? Moving/resizing windows by titlebar? Something else, more 
> > tiling related? This is a question to those who want titlebars in Awesome.
> 
> Ping? No one wants titlebars? Or do you just want empty titlebars? That'd be
> easy to implement...
> 
> Uli
> -- 
> my $key = "\x49\x03\x93\x08\x19\x94\x96\x94\x28\x93\x83\x04\x68\x28\xa8\xf5".
> "\x0a\xb9\x94\x02\x45\x81\x93\x1f\xbc\xd7\xf3\xad\x93\xf5\x32\x93";
> my $cipher = Crypt::Rijndael->new( $key, Crypt::Rijndael::MODE_ECB() );
> my $plain = $ciper->decrypt($daten);
> 
> -- 
> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
  

RE: What should titlebars be like?

2012-10-23 Thread David Sorkovsky

Seconded, Thirded, Fourthed, etc! Well Done! 
 
 
Regards,
 
 
David
 
-Original Message-
From: Andre Klärner [mailto:kan...@ak-online.be] 
Sent: Wednesday, 24 October 2012 6:01 AM
To: Uli Schlachter; awesome@naquadah.org
Subject: Re: What should titlebars be like?

Let me be the first one to say: thank you Uli, we all appreciate your hard
work.

Looks awesome! 



Uli Schlachter  schrieb:

>Hi,
>
>On 21.10.2012 20:47, Uli Schlachter wrote:
>> On 14.10.2012 16:12, Alexander Yakushev wrote:
>>> In order to start writing real titlebar widgets first we should
>decide
>>> what for people want titlebars in first place.
>Minimize/maximize/close
>>> buttons? Moving/resizing windows by titlebar? Something else, more 
>>> tiling related? This is a question to those who want titlebars in
>Awesome.
>> 
>> Ping? No one wants titlebars? Or do you just want empty titlebars?
>That'd be
>> easy to implement...
>
>Since there were so many replies to my mail, I'll just reply to my own
>mail:
>
>Done, see the attached image.
>
>What I didn't do: Minimize/Fullscreen buttons, resize with just the 
>mouse (although that wouldn't be hard...), anything with awful.rules
>
>But at least the hard part is done. :-)
>
>Cheers,
>Uli


--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: [ANNOUNCE] awesome 3.5-rc1 released (was: [ANNOUNCE] awesome 3.4-rc1 released)

2012-11-25 Thread David Sorkovsky
 
Thanks for you constant effort - it is greatly appreciated!

 
 
Regards,
 
 
David
 
 


-Original Message-
From: Uli Schlachter [mailto:psyc...@znc.in] 
Sent: Sunday, 25 November 2012 1:48 AM
To: awesome-devel list; awesome
Subject: [ANNOUNCE] awesome 3.5-rc1 released (was: [ANNOUNCE] awesome
3.4-rc1 released)

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi everyone,

On 11.09.2009 14:05, Julien Danjou wrote:
> With a good month late, here comes 3.4-rc1.

With a good two years late, here comes 3.5-rc1.

> There's an amazing number of changes, but many are internals ones, so you 
> won't notice them.[...]

There's an astonishing number of changes.

Also, we did some changes to make awesome future-proof. With lua 5.2,
module()
was deprecated in lua. Awesome no longer uses this function. However, this
has
user-visible effects. You now need to explicitly assign modules to global
variables:

   local awful = require("awful")

> Some things from the default rc.lua have been moved into awful to ease the
> configuration file management. The default rc.lua is 110 lines lighter
> now.

The rc.lua is 50 lines longer now. 40 lines of that is due to a titlebar
rewrite. Instead of forcing some kind of titlebars on the user, titlebars
are
now configured similar to wiboxes.

> The new widget layout system is also in place.

Everyone will hate me for replacing the widget system again, but I do like
the
result. Due to this, everything works differently now. On the plus side, you
won't need to use "mywidget.widget" ever again. :-)

> There's obviously a number of changes all over the place. I don't have the
> list in mind of course, so feel free to dig into the changelog.
[...]

The same applies to this release, too!

Again, there is a wiki page for documenting some changes that affect
configurations. Feel free to update it with any kind of information which
you
would have hoped to find here, but had to figure out the hard way (= asking
me).

   http://awesome.naquadah.org/wiki/Awesome_3.4_to_3.5

As always, we all here at breaking-your-config-WMs would like to thank all
contributors. Without your bug reports, patches, ideas and good questions,
this window manager would suck a lot more than it already does. One thing I
want to highlight: A total of 77 different people wrote patches for this
release!

Have fun!
Uli


awesome version 3.5-rc1 has been released. It is available from:

tar.xz: http://awesome.naquadah.org/download/awesome-3.5-rc1.tar.xz
md5: 42b76ed6a60ca376e1e0afb859986645
sha1: 2ab103a0a9675468f1dafc35e3df756e3d31b20b

tar.bz2: http://awesome.naquadah.org/download/awesome-3.5-rc1.tar.bz2
md5: 1be1cb43adbc7242a6c53d3cc01a62bd
sha1: 8c9b558cfa9293453fb1befda9ac06b365e15df2

number of changes
- -
820

number of commiters
- ---
77

shortlog
- 
Uli Schlachter (444):
  wibox: Set a proper back pixel
  Set a wibox' bit gravity to NorthWest.
  wibox: make sure no garbage is painted to the screen
  wibox: check if a wibox' window exists before modifying it
  Wibox: Check if a window exists before changing it
  Fix a invalid pointer crash bug
  image: Use imlib2's image cache
  Make it easier to change the default layout
  Implement the GetCapabilities call in naughty
  Handle synthetic UnmapNotify events
  Revert "Handle synthetic UnmapNotify events"
  Handle synthetic UnmapNotify events *correctly*
  client_focus_update(): Balance the lua stack
  property.c: Don't leave stuff on the lua stack
  Check for UNMAPPED instead of UNVIEWABLE
  Use WM_STATE_NORMAL as default
  awesome.spawn(): Return the PID
  Update API docs for recent change to spawn
  Check for xwininfo before using it
  awful.menu.clients: Raise the newly focused client
  Tasklist: Add some missing parentheses
  Remove _NET_WM_DESKTOP when client got no tags
  Handle _NET_WM_DESKTOP more intelligently
  Remove invalid variable usage
  Update the tasklist when a client's icon changes
  xwindow_set_state(): Use uint32_t instead of long
  Reorder some code for fullscreening windows
  Tasklist: Listen to the correct signals
  Add systray windows to the save-set
  Don't reparent systray windows on exit
  Add all managed client windows to the safe set
  Don't manually unban all windows on exit
  Handle errors in the config better
  Read a textbox' text correctly
  textbox: Throw a lua error on invalid markup
  Naughty: Catch invalid markup in notifications
  Clear a draw_text_context_t during wipe()
  Move wibox_systray_kickout() up
  Kick out the systray when wiping a wibox
  Add a comment to XCB_NONE for sibling
  Avoid some flickering when a new window opens
  Split up screen_scan()
  Screen: Only use Xrandr if it provides data
  Ignore size hints on fullscreen windows
  Minor cleanup
  Fix a minor ICCCM incompatibility
   

Skype / Tray Status Icon

2013-01-09 Thread David Sorkovsky

Hi All,

A quick question - Yesterday I had an icon in my tray for Skype [ie:
minimized], now today it has gone (but the main process is definitely
running) - Anyone seen this or have any suggestions on what I do to get it
back? 


PS: Using Ubuntu Server [12.04.1] with awesome from the ubuntu repository
[3.4.11]

PPS: Only change I can think of was to apply the latest updates that (from
memory) were man & firefox

PPPS: I also run remmina & guake ane their icons appear

 
Regards,
 

Dave


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


remmina in awesone - Different behaviour for RDP of Windows XP and Windows 7

2013-02-11 Thread David Sorkovsky
Hi All,

 

I’ve been using an Windows XP Virtual Machine for quite a while now. I run it 
headless and access it through RDP using remmina, running in Awesome – All 
great – Especially that when I put remmina into “full screen mode” as it uses 
the entire display, completely covering the tray. Then I just use  # to 
change to another Awesome pane/desktop/? and so on.

 

Now for the strange/interesting part… I just setup a Windows 7 VM in Virtualbox 
but this time, running headless and using remmina to RDP in, fullscreen mode 
does NOT cover the entire screen, but leaves the tray (only uses the viewport?)

 

Anyone know where I should start to look to adjust the Windows 7 VM to use the 
full screen rather than just the viewport? Virtualbox, virtualbox client 
extensions, remmina, awesome, X, other???

 

 

Thanks in advance

 

 

Dave

 

 



RE: remmina in awesone - Different behaviour for RDP of Windows XP and Windows 7

2013-02-13 Thread David Sorkovsky

Thanks!

I hadn't tried that - Now I have - It worked!


To get it to happen automagically I added this in the signals...

-- Automatically float certain windows
if c.name == "david2" then
awful.client.fullscreen.set(c, true)
end


Then I realised it was my own fault as I had actually caused it myself when
I'd done this some time back...

-- Adjust the geometry settings so windows do not cover the tray
if not (c.name == "david" or c.name == "Guake!") then
local geometry = c:geometry()
if geometry.y < mywibox[c.screen]:geometry().y +
mywibox[c.screen]:geometry().height then
geometry.y = mywibox[c.screen]:geometry().y +
mywibox[c.screen]:geometry().height + c.border_width
c:geometry(geometry)
end
end


Doh! Added   and it gave me what I'd expected. Thanks
for the reply as it got me back on track!


PS: Must investigate if fullscreen is a better choice or if the geometry
idea was a good one - comments welcome!


Thanks again!


-Original Message-
From: m...@enric.me [mailto:m...@enric.me] 
Sent: Wednesday, 13 February 2013 3:33 AM
To: davidsorkov...@hotmail.com
Subject: Re: remmina in awesone - Different behaviour for RDP of Windows XP
and Windows 7

Hey David,

Have you tried mod4 + f? It's the default keybinding for fullscreen. You can
also setup a rule for that.

Not posting to the list because i'm on my phone, and it doesn't support
mailing lists.

Cheers

--- Original message ---
> From: David Sorkovsky 
> To:   
> Sent: 11.2.'13,  12:02
> 
> Hi All,
> 
>  
> 
> I've been using an Windows XP Virtual Machine for quite a while now. I run
it headless and access it through RDP using remmina, running in Awesome -
All great - Especially that when I put remmina into "full screen mode" as it
uses the entire display, completely covering the tray. Then I just use  # to change to another Awesome pane/desktop/? and so on.
> 
>  
> 
> Now for the strange/interesting part. I just setup a Windows 7 VM in 
> Virtualbox but this time, running headless and using remmina to RDP 
> in, fullscreen mode does NOT cover the entire screen, but leaves the 
> tray (only uses the viewport?)
> 
>  
> 
> Anyone know where I should start to look to adjust the Windows 7 VM to use
the full screen rather than just the viewport? Virtualbox, virtualbox client
extensions, remmina, awesome, X, other???
> 
>  
> 
>  
> 
> Thanks in advance
> 
>  
> 
>  
> 
> Dave
> 
>  
> 
>  
> 
> 



-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


movetoscreen

2014-02-20 Thread David Sorkovsky
I'm not having much luck with...
 
  awful.key({ modkey,   }, "o",   awful.client.movetoscreen
),
  awful.key({ modkey, "Shift"   }, "F1",  function (c)
awful.client.movetoscreen(c, 1)   end),
  awful.key({ modkey, "Shift"   }, "F2",  function (c)
awful.client.movetoscreen(c, 2)  end),

All that happens on any keypress is that the mouse jumps to the top left
corner of the current window
 
Regards Dave
 
 


RE: movetoscreen

2014-02-21 Thread David Sorkovsky
;TripleBuffer"  # []
#Option "XvMC"  # []
#Option "XvPreferOverlay"   # []
#Option "DebugFlushBatches" # []
#Option "DebugFlushCaches"  # []
#Option "DebugWait" # []
#Option "HotPlug"   # []
#Option "RelaxedFencing"# []
#Option "BufferCache"   # []
Identifier  "Card0"
Driver  "intel"
BusID   "PCI:0:2:0"
#  VendorName "Intel"
EndSection

Section "Device"
  Identifier  "Card2"
  Driver  "nvidia"
  BusID   "PCI:1:0:0"
#  VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
SubSection "Display"
Viewport   0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 24
#  Modes   "1920x1080"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor"Monitor2"
SubSection "Display"
Viewport   0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 4
EndSubSection
SubSection "Display"
    Viewport   0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 24
#  Modes   "1920x1080"
EndSubSection
EndSection

 

-Original Message-
From: Maxim Bulatov [mailto:dvenum...@gmail.com] 
Sent: Friday, 21 February 2014 1:05 PM
To: David Sorkovsky
Subject: Re: movetoscreen

I had same problem with separated screen. I could not move mouse between
screens. Solution was easier to reconfigure xorg. Now, I have one big
virtual screen from two videocards in system and two screen on the awesome
wm level.

Show your xrandr output and xorg config options and describe your hardware
environment.

On Thu, Feb 20, 2014 at 10:00:54PM +1100, David Sorkovsky wrote:
> I'm not having much luck with...
>  
>   awful.key({ modkey,   }, "o",   awful.client.movetoscreen
> ),
>   awful.key({ modkey, "Shift"   }, "F1",  function (c)
> awful.client.movetoscreen(c, 1)   end),
>   awful.key({ modkey, "Shift"   }, "F2",  function (c)
> awful.client.movetoscreen(c, 2)  end),
> 
> All that happens on any keypress is that the mouse jumps to the top 
> left corner of the current window
>  
> Regards Dave

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: movetoscreen - still not having much luck...

2014-02-23 Thread David Sorkovsky

Studied awful.client.lua...

--- Move a client to a screen. Default is next screen, cycling.
-- @param c The client to move.
-- @param s The screen number, default to current + 1.
function client.movetoscreen(c, s)
screen = screen or require("awful.screen")
local sel = c or capi.client.focus
if sel then
local sc = capi.screen.count()
if not s then
s = sel.screen + 1
end
if s > sc then s = 1 elseif s < 1 then s = sc end
sel.screen = s
screen.focus(s)
end
end


Tried to do the same to see what was happening...

awful.key({ modkey,   }, "o",
function (c)
local iScreen = c.screen + 1
if iScreen > screen.count() then iScreen = 1 end

c.screen = iScreen
awful.screen.focus(iScreen)

local sNum = string.format("-=> %d, %d, %d <=-", 
c.screen, iScreen, screen.count())
naughty.notify({ text = sNum })
end),


Client still wouldn't change screens!

Notify from screen 1 was "-=> 1, 2, 2 <=-"
Notify from screen 2 was "-=> 2, 1, 2 <=-"

What I did see was that the mouse focus actually worked as expected 
(moved to the other screen)



One Confused Dave

awesome v3.4.11 (Pickapart)
 • Build: Apr  2 2012 18:39:18 for x86_64 by gcc version 4.6.3 (buildd@crested)
 • D-Bus support: ✔

-Original Message-
From: David Sorkovsky [mailto:davidsorkov...@hotmail.com] 
Sent: Friday, 21 February 2014 7:02 PM
To: awesome@naquadah.org
Cc: 'Maxim Bulatov'
Subject: RE: movetoscreen


G'Day Maxim & all,

Dual monitors both working well with Awesome - like the independence, but 
sometimes I use the RHS for my laptop and want to move apps to the LHS at that 
time.

Wondering if there is something I needed to setup in Awesome?


xrandr on LHS...

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm 
x 299mm
   1920x1080  60.0*+
   1680x1050  60.0  
   1600x900   60.0  
   1280x1024  75.0 60.0  
   1280x960   60.0  
   1280x800   59.8  
   1152x864   75.0  
   1280x720   60.0  
   1024x768   75.1 60.0  
   1024x576   60.0  
   832x62474.6  
   800x60075.0 60.3  
   640x48075.0 60.0  
   720x40070.1  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)


Xrandr on RHS...

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm 
x 299mm
   1920x1080  60.0*+
   1680x1050  60.0  
   1600x900   60.0  
   1280x1024  75.0 60.0  
   1280x960   60.0  
   1280x800   59.8  
   1152x864   75.0  
   1280x720   60.0  
   1024x768   75.1 60.0  
   1024x576   60.0  
   832x62474.6  
   800x60075.0 60.3  
   640x48075.0 60.0  
   720x40070.1  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)


Xorg.conf...

# Manually adjusted/combined from the below...
# X.org Configured
# nvidia-xconfig: X configuration file generated by nvidia-xconfig # 
nvidia-xconfig:  version 304.116
(buildmeister@swio-display-x86-rhel47-01)  Mon Oct 28 21:46:08 PDT 2013

Section "ServerLayout"
Identifier "Layout"
Screen  0  "Screen0" 0 0
Screen  1  "Screen2" RightOf "Screen0"
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
#   ModulePath   "/usr/lib/xorg/modules"
#   FontPath "/usr/share/fonts/X11/misc"
#   FontPath "/usr/share/fonts/X11/cyrillic"
#   FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
#   FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
#   FontPath "/usr/share/fonts/X11/Type1"
#   FontPath "/usr/share/fonts/X11/100dpi"
#   FontPath "/usr/share/fonts/X11/75dpi"
#   FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
#   FontPath &

RE: movetoscreen - still not having much luck...

2014-02-23 Thread David Sorkovsky

 
Tried it - Just added Option "Xinerama" "1" to my layout - Solved

I can work with that!

Thanks Uki

Regards Dave


-Original Message-
From: Uli Schlachter [mailto:psyc...@znc.in] 
Sent: Sunday, 23 February 2014 9:00 PM
To: awesome@naquadah.org
Subject: Re: movetoscreen - still not having much luck...

Hi,

On 23.02.2014 09:13, David Sorkovsky wrote:
[...]
> Dual monitors both working well with Awesome - like the independence, but
sometimes I use the RHS for my laptop and want to move apps to the LHS at
that time.
> 
> Wondering if there is something I needed to setup in Awesome?
> 
> 
> xrandr on LHS...
> 
> Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
> VGA1 disconnected (normal left inverted right x axis y axis)
> HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis)
531mm x 299mm
>1920x1080  60.0*+
>1680x1050  60.0  
>1600x900   60.0  
>1280x1024  75.0 60.0  
>1280x960   60.0  
>1280x800   59.8  
>1152x864   75.0  
>1280x720   60.0  
>1024x768   75.1 60.0  
>1024x576   60.0  
>832x62474.6  
>800x60075.0 60.3  
>640x48075.0 60.0  
>720x40070.1  
> DP1 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)
> DP2 disconnected (normal left inverted right x axis y axis)
> 
> 
> Xrandr on RHS...
> 
> Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
> VGA1 disconnected (normal left inverted right x axis y axis)
> HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis)
531mm x 299mm
>1920x1080  60.0*+
>1680x1050  60.0  
>1600x900   60.0  
>1280x1024  75.0 60.0  
>1280x960   60.0  
>1280x800   59.8  
>1152x864   75.0  
>1280x720   60.0  
>1024x768   75.1 60.0  
>1024x576   60.0  
>832x62474.6  
>800x60075.0 60.3  
>640x48075.0 60.0  
>720x40070.1  
> DP1 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)
> DP2 disconnected (normal left inverted right x axis y axis)

Welcome to 1987. You have two different protocol screens. They are
completely independent. They only share the keyboard and the mouse. That's
it.

This does especially mean that you cannot move windows between screens.
(This is a limitation of X11!)

People were unhappy and Xinerama was invented and included in X11R6v4.0.
This makes multiple screens "look" to the X11 protocol like a single, big
one. Since from the protocol's point of view there is now just a single
screen, windows can now move around freely.

(At least I think that this is what's going on, since you are giving us two
times the same xrandr output and claim that it is for the different
screens...)

> Xorg.conf...
> 
> # Manually adjusted/combined from the below...
> # X.org Configured
> # nvidia-xconfig: X configuration file generated by nvidia-xconfig # 
> nvidia-xconfig:  version 304.116
> (buildmeister@swio-display-x86-rhel47-01)  Mon Oct 28 21:46:08 PDT 
> 2013
> 
> Section "ServerLayout"
>   Identifier "Layout"
>   Screen  0  "Screen0" 0 0
>   Screen  1  "Screen2" RightOf "Screen0"

Yeah, zaphod mode, not Xinerama.

>   InputDevice"Mouse0" "CorePointer"
>   InputDevice"Keyboard0" "CoreKeyboard"
> EndSection
[...]

Cheers,
Uli
--
 I think someone had a Xprint version of glxgears at one point,
but benchmarking how many GL pages you can print per second
was deemed too silly to merge

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: can't get to run skype

2014-08-10 Thread David Sorkovsky
Hi Yuri,
 
I also found issues with Skype not logging in - I updated to the latest and
it has worked cleanly since. 
 
It seems that your version is the latest, so only think I can suggest is
removing it (possibly installing an older one) and then re-installing.
 
Regards
 
Dave

  _  

From: Yuri Kanivetsky [mailto:yuri.kanivet...@gmail.com] 
Sent: Sunday, 10 August 2014 6:42 AM
To: awesome@naquadah.org
Subject: can't get to run skype


Hi,

I've run awesome for the first time now. And the problem is that I can't get
to run skype. I enter password, press Enter, it shows contact list for a
second and then disappears. If run from terminal, it crashes with: "Aborted
(core dumped)". I'm running ubuntu 13.10, skype 4.3.0.37-1 and awesome
3.4.15-1. Any thoughts?

Regards,
Yuri


RE: Windows opening on wrong screen

2014-09-02 Thread David Sorkovsky
 
Hi Andre,

I also had a lot of trouble getting my system just right. I did lots of
playing with xorg.conf and with two screens from the built in graphics
controller of my CPU and this is my final config (two monitors but just one
screen)...

Section "Monitor"
Identifier  "HDMI1"
VendorName  "Samsung"
ModelName   "?"
Option  "PreferredMode" "1920x1080"
Option  "RightOf" "HDMI2"
EndSection

Section "Monitor"
Identifier  "HDMI2"
VendorName  "BenQ"
ModelName   "?"
Option  "PreferredMode" "1920x1080"
Option  "LeftOf" "HDMI1"
EndSection

Section "Device"
Identifier  "MotherboardVideo"
Driver  "intel"
VendorName  "Intel Corporation Xeon E3-1200 v2/3rd Gen
Core processor Graphics Controller (rev 09)"
EndSection

Section "Screen"
Identifier  "Screen"
Device  "MotherboardVideo"
Monitor "HDMI2"
DefaultDepth24
  SubSection "Display"
Viewport0 0
Depth   24
Modes   "1920x1080" "1920x1080"
Virtual 3840 1080
EndSubSection
EndSection

I got the identifiers from the "xrandr" info, so looking at yours, you'd
probably have "DisplayPort-0", "HDMI-0" and "DVI-0" where I have "HDMI1" and
"HDMI2"

Nice things was no Xinerama which seems to be the preferred way!

-Original Message-
From: Andre Naujoks [mailto:nauts...@gmail.com] 
Sent: Tuesday, 2 September 2014 5:18 PM
To: David Palacio; awesome@naquadah.org
Subject: Re: Windows opening on wrong screen

On 02.09.2014 03:23, David Palacio wrote:
> El Lun 01 Sep 2014 11:15:36 Andre Naujoks escribió:
>> Hi.
>>
>> I am just giving awesome a try and like it so far. I am on a debian 
>> sid with awesome version 3.4.15-1+b1.
>>
>> It has one quirk, where I think it is a bug.
>>
>> When I open a window (say a terminal with Mod4 + Return, but the 
>> application does not matter.), the window should apear on the current 
>> 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.
>>
>> - I select the screen by either moving the mouse into it, or
Mod4+Ctrl+j/k.
>> - I start an application on my right-most screen and the window opens 
>> on my primary/center screen.
>>
>> I attached a screenshot of my layout, so you get an idea of what I am 
>> talking about. (the black stripes above the left and right screen are 
>> unused, i.e. the monitors end where the menu-bar is)
>>
>> As mentioned it works for the left and the center screen, but not for 
>> the right one.
>>
>> Am I doing something wrong or is this a bug? I am not familiar enough 
>> with lua or window managers at all to try my hand at this, but I can 
>> test and try patches.
>>
>> Regards
>>   Andre
> Hi Andre,
> 
> As you mention three screens I suspect you may be using two separated 
> GPUs at the same time in the same X screen. That is not well supported in
Awesome 3.4.
> I used to use three screens on a PC with a NVidia and integrated Intel 
> GPUs and ran into many problems with it. To improve my setup I made 
> some modifications to Awesome. You can check and compile it at:
> 
> https://github.com/dpalacio/awesome-randr-zaphod
> 
> It works in Zaphod mode and with video drivers that support RandR
extension. 
> It does not support Xinerama.
> 

Hi David,

Hm. I am not using two GPUs. Just one Radeon HD 6870 with four outputs, of
which three are used. My other E-Mail in reply to Elv1313 contains my
xorg.conf and an xrandr output. Maybe there is something borked there, but I
didn't have such problems before.

Regards
  Andre

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Awesome Menu Applicaions

2014-09-14 Thread David Sorkovsky
Categorized / Grouped? Here's part of mine...

MythTVMenu ={
{ "Play", "mythfrontend" },
{ "Stop", "sudo stop
mythtv-backend" },
{ "Start", "sudo start
mythtv-backend" },
{ "Restart", "sudo restart
mythtv-backend" },
{ "Setup", "sudo
mythtv-setup" }
}

TVMenu ={
{ "MythTV", MythTVMenu },
{ "XBMC", "xbmc" },
{ "Kaffeine", "kaffeine" }
}

AwesomeMenu = {
{ "Debian",
debian.menu.Debian_menu.Debian },
{ "manual", terminal .. " -e
man awesome" },
{ "edit config", editor_cmd
.. " " .. awful.util.getdir("config") .. "/rc.lua" },
{ "edit theme", editor_cmd
.. " " .. awful.util.getdir("config") .. "/theme.lua" },
{ "restart", awesome.restart
},
{ "quit", awesome.quit }
 }

mymainmenu = awful.menu({
items = { 

{ "Web Browser (Firefox)", "/usr/bin/firefox" },

{ "File Manager (Xfe)", "/usr/bin/xfe", "/usr/share/pixmaps/xfe.xpm" },

{ "Drives", "sudo gnome-disks" },

{ "Text Editor (from Xfe)", "/usr/bin/xfwrite", "/usr/share/pixmaps/xfw.xpm"
},

{ "Terminal (from Xfe)", terminal },

{ "Mixer", terminal .. " alsamixer" },

{ "VLC", myMenu4 },

{ "TV", TVMenu },

{ "awesome", AwesomeMenu, beautiful.awesome_icon }
}
 })


-Original Message-
From: Kevin Clay [mailto:kclayengin...@cableone.net] 
Sent: Sunday, 14 September 2014 6:47 PM
To: awesome@naquadah.org
Subject: Awesome Menu Applicaions

I have been through the wiki on installing Awesome for the first time 
and I see screenshots in which the awesome menu has categorized lists of 
applications. The wiki doesn't explain how to do this or if it supposed 
to do this automagically. My menu doesn't show any applicaions and I was 
wondering how to get it to do this.

Thanks.

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Command to get current window to fill screen area while in floating layout

2014-09-27 Thread David Sorkovsky
Hi All,

 

I'm looking for a command to get the current window [with a title bar] to
fill the screen area [below the tray] while in a floating layout?

 

 



RE: Command to get current window to fill screen area while in floating layout

2014-09-27 Thread David Sorkovsky
That was it - can't believe I missed it - thanks!

 

  _  

From: William Tomlinson [mailto:watomlin...@gmail.com] 
Sent: Saturday, 27 September 2014 11:58 PM
To: David Sorkovsky
Cc: awesome
Subject: Re: Command to get current window to fill screen area while in
floating layout

 

On Sep 27, 2014 9:14 AM, "David Sorkovsky" 
wrote:
>
> Hi All,
>
>  
>
> I'm looking for a command to get the current window [with a title bar] to
fill the screen area [below the tray] while in a floating layout?
>
>  
>
>  

Mod + M would maximize the window in floating layout. Is that what you are
looking for?

-Will



RE: Command to get current window to fill screen area while in floating layout

2014-09-27 Thread David Sorkovsky
Found another way that makes the unmaximized state full screen.

 

awful.key({ modkey, "Shift"   }, "m", function (c)
c:geometry(screen[c.screen].workarea) end )

 

  _  

From: David Sorkovsky [mailto:davidsorkov...@hotmail.com] 
Sent: Sunday, 28 September 2014 3:35 PM
To: 'William Tomlinson'
Cc: 'awesome'
Subject: RE: Command to get current window to fill screen area while in
floating layout

 

That was it - can't believe I missed it - thanks!

 

  _  

From: William Tomlinson [mailto:watomlin...@gmail.com] 
Sent: Saturday, 27 September 2014 11:58 PM
To: David Sorkovsky
Cc: awesome
Subject: Re: Command to get current window to fill screen area while in
floating layout

 

On Sep 27, 2014 9:14 AM, "David Sorkovsky" 
wrote:
>
> Hi All,
>
>  
>
> I'm looking for a command to get the current window [with a title bar] to
fill the screen area [below the tray] while in a floating layout?
>
>  
>
>  

Mod + M would maximize the window in floating layout. Is that what you are
looking for?

-Will



RE: Automatically open processes on startup

2014-10-05 Thread David Sorkovsky
Have you considered Rules?

 

Default rc.lua - Note the firefox entry.

 

-- {{{ Rules

awful.rules.rules = {

-- All clients will match this rule.

{ rule = { },

  properties = { border_width = beautiful.border_width,

 border_color = beautiful.border_normal,

 focus = true,

 keys = clientkeys,

 buttons = clientbuttons } },

{ rule = { class = "MPlayer" },

  properties = { floating = true } },

{ rule = { class = "pinentry" },

  properties = { floating = true } },

{ rule = { class = "gimp" },

  properties = { floating = true } },

-- Set Firefox to always map on tags number 2 of screen 1.

-- { rule = { class = "Firefox" },

--   properties = { tag = tags[1][2] } },

}

 

  _  

From: Maytar Byle [mailto:mayt...@gmail.com] 
Sent: Monday, 6 October 2014 12:06 AM
To: awesome@naquadah.org
Subject: Automatically open processes on startup

 

Hello!

 

I'm running awesome 3.4 and i wanted to add a feature that on startup - a
list of processes will be loaded to their designated tags.

For example: terminal will be loaded to the first tag, music player will be
loaded to the fifth etc..

 

The code i added to rc.lua goes like this:

 

tag_apps = { { terminal, terminal } , { terminal } }

for i = 1, #tag_apps do

for j = 1, #tag_apps[i] do

awful.util.spawn(tag_apps[i][j])

--awful.client.movetotag(i, c)

end

end

 

teminal is the terminal command.

 

My problems are those:

1. spawn makes the xserver crash and i don't understand why.

2. Even if it would work, how do i get the client object for the process i
just opened so i can move it to the correct tag with movetotag?

 

Thank you!



RE: Remove titlebar in some applications (awesome 3.5)

2014-10-15 Thread David Sorkovsky

I'm still on the Ubuntu Server 14.04 package version of Awesome (3.4.15),
but for what it's worth...

I used to do this (may work for you)...

client.add_signal("manage", function (c, startup)

if not startup then
-- Test
-- naughty.notify({ title="Signal: " .. c.name,
text=c.class .. ", " .. c.type .. ", " .. c.instance, timeout = 5 })

-- Add a titlebar
if c.name ~= "mythfrontend.real" and c.class ~=
"Remmina" then
awful.titlebar.add(c, { modkey = modkey })

end


Thanks to your email I now do this...

-- Add titlebar to windows

{ rule = {},
  except_any = { name = { "mythfrontend.real" } },
  callback = awful.titlebar.add
}


-Original Message-
From: Zum Testen [mailto:zum.tes...@yahoo.de] 
Sent: Wednesday, 15 October 2014 8:15 PM
To: awesome@naquadah.org
Subject: Remove titlebar in some applications (awesome 3.5)

I would like to exclude some of my applications to have a title bar. For
example, chromium should have no title bar but all other applications should
have one.

I found this thread: 
https://bbs.archlinux.org/viewtopic.php?id=142862
Unfortunately, the solutions seem to be a little bit outdated. I couldn't
port them to awesome 3.5

What would be the appropriate way to remove the title bar for specific
applications in awesome 3.5?

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: show a wibox with a timeout

2014-12-21 Thread David Sorkovsky

Are you aware of... naughty.notify({ title="Hi", text="Howdy", timeout = 3
})


-Original Message-
From: cedlemo [mailto:cedl...@gmx.com] 
Sent: Sunday, 21 December 2014 1:04 AM
To: awesome@naquadah.org
Subject: 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 ?

cedlemo

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Naughty Notifications on multiple monitors

2015-06-05 Thread David Sorkovsky
 

Of I understand the…

 

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

 

 

… code correctly, would you even need to modify naughty.lua?

 

 

Regards 

 

Dave

 

  _  

From: Alexis BRENON [mailto:brenon.ale...@gmail.com] 
Sent: Friday, 5 June 2015 11:07 PM
To: Abraham Baker
Cc: Elv1313 .; awesome
Subject: Re: Naughty Notifications on multiple monitors

 

Instead of hidding the error just replace line 600 from:
local id = naughty.notify(args).id

to

naughty.notify(args)

 

You don't need the id any more if you don't use it. This way, no more error.

Le ven. 5 juin 2015 à 14:57, Abraham Baker  a
écrit :

Hi,

My goal is to get every notification to show up on all monitors.  This isn't
critical; it just makes switching between standing/sitting easier.  


I don't use often-updating notifications, so I (for now) don't care about
the notification id's.  So, I'm thinking Elv1313's solution + hiding the
naughty.lua:600 error would be enough.

 

The relevant part of my rc.lua:

-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library


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

local menubar = require("menubar")
local revelation=require("revelation")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
 title = "Oops, there were errors during startup!",
 text = awesome.startup_errors })
end

-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true

naughty.notify({ preset = naughty.config.presets.critical,
 title = "Oops, an error happened!",
 text = err })
in_error = false
end)
end
-- }}}



The relevant part of naughty.lua (the only part changed from default):
local id = naughty.notify(args).id
return "u", id
--local notifs = naughty.notify(args)
--local id = {}
--for notif in ipairs(notifs) do
--  id:insert(notif.id)
--end

Thanks,

Abe

 

On Fri, Jun 5, 2015 at 2:22 AM, Alexis BRENON 
wrote:

Hi Abraham,

I'm sorry, I don't understand what and when did commented out ?

Can you please post your config file on pastebin (http://pastebin.com/) or
something like that (github?).

 

To fix the error about 'insert' method, you can replace the line :

notifications:insert(i, naughty.notify_(args,...))

by

table.insert(notifications, i, naughty.notify)

 

Maybe you will have also to cheat a little bit if i doesn't start to 1...

 

Maybe I can explain you a little deeper what are the goals, this way you
will be able to debug yourself.

 

So, you want to have your notifications displayed on many screens (the exact
number is not important).

To do so, you have to redefine the classic naughty.notify function, to call
the initial naughty.notify function with the screen arg which loop over all
your screen. This is what is done by the code sent by Elv1313.

 

Nevertheless, the initial notify function returns a table representing the
notification, containing for example an ID (the id field). If you don't need
it, so fine, stick to the Elv1313 solution and remove any
naughty.notify(...).id code in your config.

But this ID can be useful if you need to replace a notification instead of
adding a new one (this can be the case if you use notification to display
volume changement, backlight modification, battery alert, whatever).

To handle this, your new notify function must return the created
notifications, or at least their ID.

This is what my code intend to do. For each call to the initial notify
function, I put the resulting table in a 'result' table, indexed by the
index of the screen on which the notification is displayed. Up to ypu after
to use it the right way.

 

The last chunk of code I sent you, handle the case where you want to use the
replaces_id argument of notify. As, in your case, you will have not only
one, but many notifications to replace (one on each screen), you will pass
the replaces_id argument as a table. This is not handled by the initial
notify function, so for the actual call you use the value at the index
repre

RE: advice

2015-09-09 Thread David Sorkovsky
 

G'Day Ray,

 

As a point of introduction, I use awesome for pretty much all the reasons
you note and most have been answered, but I'd like to add that you need not
be put off if you are NOT looking for a tiling window manager.

 

I don't often use the advance features - I usually just use
"Floating" most of the time with one app per tag

Thanks to the lua config I have some applications that
automatically maximize to a "tag" which I then use just like it was on its
own "desktop"

 

PS: For multiple monitors I played a bit and ended up with a really simply
xorg.conf - Two monitors with a "virtual" desktop of the total area [and you
can even place floating windows so they overlap both screens (not that you'd
really want to)

 

 

Regards 

 

Dave

 

  _  

From: Ray Andrews [mailto:rayandr...@eastlink.ca] 
Sent: Wednesday, 9 September 2015 3:59 AM
To: awesome@naquadah.org
Subject: advice

 

Gentlemen,

I use xfce, it's fine, but I want something lighter.B All I really want is
the xfwm part of it, and even that window manager has its defects. I have
dual monitors, and I can't drag anything between monitors.B I hate trying to
configure things using those stupid pop up dialogue boxes.B I'd like text
configuration files that I can edit, save, backup and restore.

Awesome seems well spoken of.B What can you guys tell me?B I can't think
what to specifically ask.B It would be nice if it worked sensibly out of the
box.B I don't need fancy effects.B I want windows on screens that I can
resize, maximize, minimize, etc.B Nice if they snap to borders to avoid
wasted space.B Xfce gives normally six or so desktops than you can change
to, that's good.B The mouse has to work.B I need custom keyboard shortcuts.B
Basically nothing strange.B I don't want to have to spend six months
learning Lua.B I want a simple, predictable, configurable WM that is usable
but doesn't bother me with bells and whistles.

Advice?



RE: Mod-u and Mod-i when monitors switch position

2016-07-21 Thread David Sorkovsky
Hi,

Not sure about how your key combinations are configured, but these are what I 
have in my awesome config...

awful.key({ modkey, "Control" }, "j",   function () 
awful.screen.focus_relative( 1) 
end),
awful.key({ modkey, "Control" }, "k",   function () 
awful.screen.focus_relative(-1) 
end),
awful.key({ modkey,   }, "u",   
awful.client.urgent.jumpto  
   ),

From that and "https://awesomewm.org/doc/api/modules/awful.screen.html"; you 
might want to try...

awful.screen.focus_bydirection (dir, _screen) 

"Give the focus to a screen, and move pointer, by physical position 
relative to current screen."


Regards

Dave

-Original Message-
From: Oon-Ee Ng [mailto:ngoonee.t...@gmail.com] 
Sent: Friday, 22 July 2016 1:37 PM
To: awesome@naquadah.org
Subject: Mod-u and Mod-i when monitors switch position

Right now Mod-u and Mod-i go to the 1st/2nd monitor respectively. My 1st 
monitor is my primary laptop LCD, while my 2nd monitor is a VGA-connected one.

In my home, the 2nd monitor is on the right, but in my office its made more 
sense to move it to the left. Trivial to setup xrandr for that, but now my 
muscle memory keeps pressing Mod-u when I want to go the the external monitor 
(because I remember it as 'go to left monitor').

How can I make Mod-u represent "go to the screen which is on the left"
rather than "go to the first (primary) screen"?

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


UPS Status [NUT]

2016-07-26 Thread David Sorkovsky
Hi All,

Anyone display information on a UPS [I am using NUT to monitor it]?

Wanted: Widget?
Notification popup?


Regards,

Dave


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



RE: UPS Status [NUT]

2016-07-26 Thread David Sorkovsky
Hi Aleksei,

I looked at most of the battery monitor widgets but the seemed to be for Laptops

The UPS is external (before) the PC and "NUT" runs to get status (upsc)

Just as an FYI, upower returns the following wether the UPS is powered or on 
battery...

Daemon:
  daemon-version:  0.9.23
  can-suspend: no
  can-hibernate:   no
  on-battery:  no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  no
  is-docked:   yes

Wondering if anyone has a widget the processes the info "upsc" provides (or do 
I write one)

Wondering if there is a way to get Awesome to show system messages from a 
script as notifications


Regards,

Dave


-Original Message-
From: Aleksei Fedotov [mailto:l...@cfotr.com] 
Sent: Tuesday, 26 July 2016 11:01 PM
To: David Sorkovsky 
Cc: awesome@naquadah.org
Subject: Re: UPS Status [NUT]

Hi David,

Could you check if upowerd could see your UPS ? Run 'upower -d' in
your terminal and look if it has information about UPS status.

If upower provides information about UPS status, you can use widget
https://github.com/lexa/awesome_upower_battery . It grabs information
from upowerd via DBus and displays battery status and charge
percentage.

On 7/26/16, David Sorkovsky  wrote:
> Hi All,
>
> Anyone display information on a UPS [I am using NUT to monitor it]?
>
> Wanted:   Widget?
>   Notification popup?
>
>
> Regards,
>
> Dave
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>


-- 
Kind Regards,
Aleksei


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



RE: UPS Status [NUT]

2016-07-29 Thread David Sorkovsky
Hi All

Here is my simple widget for the UPS data…

--
-- UPS widget
--
myUPS = {}
myUPS.widget = widget({type = "textbox"})
myUPS.tooltip = awful.tooltip({ objects = { myUPS.widget },})
myUPS.timer = timer({ timeout = 55 })

myUPS.refresh = function()local f = 
io.popen("upsc myups")

local str = f:read("*all")

f:close()
--  
   myUPS.widget.text = (( string.find(str, "ups.status: OL") ) ? 
"Line" : "Batt")
--  
   myUPS.widget.text = fif( string.find(str, "ups.status: OL"), 
"Line", "Batt")

if string.find(str, "ups.status: OL") then

myUPS.widget.text = "Line"

else

myUPS.widget.text = "Batt"

end

myUPS.tooltip:set_text(str)

myUPS.timer:again()

end

myUPS.widget:buttons( awful.util.table.join( awful.button({ }, 
1, function() myUPS.refresh() end) ))

myUPS.timer:add_signal("timeout", function() myUPS.refresh() 
end)
myUPS.timer:start()

myUPS.refresh()

Pending / Further questions…


1)  Get system messages / “wall” notifications to display as a popup 
(naughty.notify)


2)  Is the ternary operator supported? [if so, what have I done wrong]


3)  Is “iif” supported? [if so, what have I done wrong]


4)  Graphical (possibly using Bashets as suggested by Riccardo)



5)  Suggested improvements?


Regards,

Dave

From: Riccardo Sven Risuleo [mailto:riccardos...@gmail.com]
Sent: Wednesday, 27 July 2016 12:46 AM
To: David Sorkovsky ; awesome@naquadah.org
Subject: Re: UPS Status [NUT]

Hi David,
I would advise you to use bashets (https://awesome.naquadah.org/wiki/Bashets); 
you get all kinds of widgets (barplots, graphs,numerical) to display raw data 
that gets extracted with your own bash scripts.
Hope this helps you,
All the best
On Tue, Jul 26, 2016 at 4:24 PM David Sorkovsky 
mailto:davidsorkov...@hotmail.com>> wrote:
Hi Aleksei,

I looked at most of the battery monitor widgets but the seemed to be for Laptops

The UPS is external (before) the PC and "NUT" runs to get status (upsc)

Just as an FYI, upower returns the following wether the UPS is powered or on 
battery...

Daemon:
  daemon-version:  0.9.23
  can-suspend: no
  can-hibernate:   no
  on-battery:  no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  no
  is-docked:   yes

Wondering if anyone has a widget the processes the info "upsc" provides (or do 
I write one)

Wondering if there is a way to get Awesome to show system messages from a 
script as notifications


Regards,

Dave


-Original Message-
From: Aleksei Fedotov [mailto:l...@cfotr.com<mailto:l...@cfotr.com>]
Sent: Tuesday, 26 July 2016 11:01 PM
To: David Sorkovsky 
mailto:davidsorkov...@hotmail.com>>
Cc: awesome@naquadah.org<mailto:awesome@naquadah.org>
Subject: Re: UPS Status [NUT]

Hi David,

Could you check if upowerd could see your UPS ? Run 'upower -d' in
your terminal and look if it has information about UPS status.

If upower provides information about UPS status, you can use widget
https://github.com/lexa/awesome_upower_battery . It grabs information
from upowerd via DBus and displays battery status and charge
percentage.

On 7/26/16, David Sorkovsky 
mailto:davidsorkov...@hotmail.com>> wrote:
> Hi All,
>
> Anyone display information on a UPS [I am using NUT to monitor it]?
>
> Wanted:   Widget?
>   Notification popup?
>
>
> Regards,
>
> Dave
>
>
> ---
> This 

RE: UPS Status [NUT]

2016-07-29 Thread David Sorkovsky
Update / Share - Answered questions 2 & 3 myself…

2) Ternary:

x = condition ? if_true : if_false -- Doesn’t 
work

x = condition and if_true or if_false -- Works


3) fif:

Doesn’t exist – make it…

function fif(condition, if_true, if_false)
if condition then return if_true else return 
if_false end
end

Regards ,

Dave

From: David Sorkovsky [mailto:davidsorkov...@hotmail.com]
Sent: Friday, 29 July 2016 9:21 PM
To: 'Riccardo Sven Risuleo' ; awesome@naquadah.org
Subject: RE: UPS Status [NUT]

Hi All

Here is my simple widget for the UPS data…

--
-- UPS widget
--
myUPS = {}
myUPS.widget = widget({type = "textbox"})
myUPS.tooltip = awful.tooltip({ objects = { myUPS.widget },})
myUPS.timer = timer({ timeout = 55 })

myUPS.refresh = function()local f = 
io.popen("upsc myups")

local str = f:read("*all")

f:close()
--  
   myUPS.widget.text = (( string.find(str, "ups.status: OL") ) ? 
"Line" : "Batt")
--  
   myUPS.widget.text = fif( string.find(str, "ups.status: OL"), 
"Line", "Batt")

if string.find(str, "ups.status: OL") then

myUPS.widget.text = "Line"

else

myUPS.widget.text = "Batt"

end

myUPS.tooltip:set_text(str)

myUPS.timer:again()

end

myUPS.widget:buttons( awful.util.table.join( awful.button({ }, 
1, function() myUPS.refresh() end) ))

myUPS.timer:add_signal("timeout", function() myUPS.refresh() 
end)
myUPS.timer:start()

myUPS.refresh()

Pending / Further questions…


1)  Get system messages / “wall” notifications to display as a popup 
(naughty.notify)


2)  Is the ternary operator supported? [if so, what have I done wrong]


3)  Is “iif” supported? [if so, what have I done wrong]


4)  Graphical (possibly using Bashets as suggested by Riccardo)



5)  Suggested improvements?


Regards,

Dave

From: Riccardo Sven Risuleo [mailto:riccardos...@gmail.com]
Sent: Wednesday, 27 July 2016 12:46 AM
To: David Sorkovsky ; awesome@naquadah.org
Subject: Re: UPS Status [NUT]

Hi David,
I would advise you to use bashets (https://awesome.naquadah.org/wiki/Bashets); 
you get all kinds of widgets (barplots, graphs,numerical) to display raw data 
that gets extracted with your own bash scripts.
Hope this helps you,
All the best
On Tue, Jul 26, 2016 at 4:24 PM David Sorkovsky 
mailto:davidsorkov...@hotmail.com>> wrote:
Hi Aleksei,

I looked at most of the battery monitor widgets but the seemed to be for Laptops

The UPS is external (before) the PC and "NUT" runs to get status (upsc)

Just as an FYI, upower returns the following wether the UPS is powered or on 
battery...

Daemon:
  daemon-version:  0.9.23
  can-suspend: no
  can-hibernate:   no
  on-battery:  no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  no
  is-docked:   yes

Wondering if anyone has a widget the processes the info "upsc" provides (or do 
I write one)

Wondering if there is a way to get Awesome to show system messages from a 
script as notifications


Regards,

Dave


-Original Message-
From: Aleksei Fedotov [mailto:l...@cfotr.com<mailto:l...@cfotr.com>]
Sent: Tuesday, 26 July 2016 11:01 PM
To: David Sorkovsky 
mailto:davidsorkov...@hotmail.com>>
Cc: awesome@naquadah.org<mailto:awesome@naquadah.org>
Subject: Re: UPS Status [NUT]

Hi David,

Could you 

Recall: UPS Status [NUT]

2016-07-30 Thread David Sorkovsky
David Sorkovsky would like to recall the message, "UPS Status [NUT]".

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: UPS Status [NUT]

2016-07-31 Thread David Sorkovsky
Hi Elv1313

Thanks for the detailed reply!

I just use the version published in Ubuntu (14.04) – Not sure who would 
actually update/add/remove that. Looking to update to 16.04 soon – Will see if 
the awesome package has updated in that or if I take your advice and manually 
install


Regards

Dave

From: Elv1313 . [mailto:elv1...@gmail.com]
Sent: Sunday, 31 July 2016 4:51 PM
To: David Sorkovsky 
Cc: awesome@naquadah.org
Subject: Re: UPS Status [NUT]

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. Awesome is single threaded and this block/lock 
your whole X11 session (all application and mouse/keyboard events) while the 
command is being executed. Newer Awesome version have either LGI async API or, 
in case of the git version of awesome, awful.spawn async functions.

1)  Get system messages / “wall” notifications to display as a popup 
(naughty.notify)

 naughty.notify is the correct API

3)  Is “iif” supported? [if so, what have I done wrong]

Yes, there is:

 local result = condition1 and object_when_true or object_when_false

 local first_non_false_or_nil_object = object1 or object2 or object3 or object4

lua syntax is very consistent and small, but, beside switch(), everything is 
there for sequential, object and functional programming

4)  Graphical (possibly using Bashets as suggested by Riccardo)

 The Awesome 3.4 graphical API has been replaced. The current API documentation 
is here 
http://new.awesomewm.org/apidoc/documentation/03-declarative-layout.md.html
5)  Suggested improvements?
See above

On 30 July 2016 at 01:50, David Sorkovsky 
mailto:davidsorkov...@hotmail.com>> wrote:
Update / Share - Answered questions 2 & 3 myself…

2) Ternary:

x = condition ? if_true : if_false -- Doesn’t 
work

x = condition and if_true or if_false -- Works


3) fif:

Doesn’t exist – make it…

function fif(condition, if_true, if_false)
if condition then return if_true else return 
if_false end
end

Regards ,

Dave

From: David Sorkovsky 
[mailto:davidsorkov...@hotmail.com<mailto:davidsorkov...@hotmail.com>]
Sent: Friday, 29 July 2016 9:21 PM
To: 'Riccardo Sven Risuleo' 
mailto:riccardos...@gmail.com>>; 
awesome@naquadah.org<mailto:awesome@naquadah.org>
Subject: RE: UPS Status [NUT]

Hi All

Here is my simple widget for the UPS data…

--
-- UPS widget
--
myUPS = {}
myUPS.widget = widget({type = "textbox"})
myUPS.tooltip = awful.tooltip({ objects = { myUPS.widget },})
myUPS.timer = timer({ timeout = 55 })

myUPS.refresh = function()local f = 
io.popen("upsc myups")

local str = f:read("*all")

f:close()
--  
   myUPS.widget.text = (( string.find(str, "ups.status: OL") ) ? 
"Line" : "Batt")
--  
   myUPS.widget.text = fif( string.find(str, "ups.status: OL"), 
"Line", "Batt")

if string.find(str, "ups.status: OL") then

myUPS.widget.text = "Line"

else

myUPS.widget.text = "Batt"

end

myUPS.tooltip:set_text(str)

myUPS.timer:again()

end

myUPS.widget:buttons( awful.util.table.join( awful.button({ }, 
1, function() myUPS.refresh() end) ))

myUPS.timer:add_signal("timeout", function() myUPS.refresh() 
end)
myUPS.time

RE: Multi-monitor - wibox?

2016-08-03 Thread David Sorkovsky
Going on from Laurent's email, I expect you could just do...

if s == screen.count() then right_layout:add(wibox.widget.systray()) end

Regards

Dave

From: Laurent De Buyst [mailto:laurent.debu...@fedasil.be]
Sent: Wednesday, 3 August 2016 5:13 PM
To: awesome@naquadah.org
Subject: Re: Multi-monitor - wibox?

I handle my screen setup by first having:

local screens = screen.count()

in my rc.lua. Further down, my setup is then different depending on whether 
screens == 2 or not.


Other option: swap your monitor cables on your PC, that should swap the id of 
your screens and put your systray in the right place.. Then redo the xrandr 
layout.


Finally, as far as I know, awesome is built based on the assumption that a 
screen contains tags and a tag contains windows. This hierarchy can probably 
not be broken without rewriting awesome. Your desire to basically have a tag 
contain two screens will be problematic.

The only solution I see is to define tag pairs in your rc.lua and then write 
your own function that will run on every tag change and activate the other 
member of a pair.

Laurent De Buyst
System administrator




From:Greg Bell 
mailto:gbell_spaml...@yahoo.com>>
To:awesome@naquadah.org
Date:08/03/2016 08:00 AM
Subject:Multi-monitor - wibox?





Hi everybody,

I have a "main" screen, and a smaller "side" screen (actual, physical
screens).

Everything's working (thanks xrandr!)

Only problem is, the systray is on the side screen.  This is because
Awesome thinks my side screen is "screen 1".  I'm deducing this
because only it has a systray and I have this in rc.lua:

if s == 1 then right_layout:add(wibox.widget.systray()) end

Question: How do I tell Awesome to consider my "main" screen as screen
1?  Of course I could just change the code above to s == 2, but if I
take off my side screen and there's then only one screen again, I'd
have no systray.

Also, the tag being viewed is independent for the two screens.  That's
more granularity than I'd like.  When I switch "contexts" (tags) I'd
like both monitors to reflect that.  Am I just looking at implementing
that in rc.lua?

Thanks for the help and thanks to the devs for such a great WM.


--
To unsubscribe, send mail to 
awesome-unsubscr...@naquadah.org.

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-tick-v1.gif]
   Virus-free. 
www.avast.com


RE: UPS Status [NUT]

2016-08-05 Thread David Sorkovsky

Good news!

Ubuntu 16.04.01 now has Awesome 3.5.6


Regards

Dave

From: David Sorkovsky [mailto:davidsorkov...@hotmail.com]
Sent: Sunday, 31 July 2016 5:09 PM
To: 'Elv1313 .' 
Cc: awesome@naquadah.org
Subject: RE: UPS Status [NUT]

Hi Elv1313

Thanks for the detailed reply!

I just use the version published in Ubuntu (14.04) – Not sure who would 
actually update/add/remove that. Looking to update to 16.04 soon – Will see if 
the awesome package has updated in that or if I take your advice and manually 
install


Regards

Dave

From: Elv1313 . [mailto:elv1...@gmail.com]
Sent: Sunday, 31 July 2016 4:51 PM
To: David Sorkovsky 
Cc: awesome@naquadah.org
Subject: Re: UPS Status [NUT]

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. Awesome is single threaded and this block/lock 
your whole X11 session (all application and mouse/keyboard events) while the 
command is being executed. Newer Awesome version have either LGI async API or, 
in case of the git version of awesome, awful.spawn async functions.

1)  Get system messages / “wall” notifications to display as a popup 
(naughty.notify)

 naughty.notify is the correct API

3)  Is “iif” supported? [if so, what have I done wrong]

Yes, there is:

 local result = condition1 and object_when_true or object_when_false

 local first_non_false_or_nil_object = object1 or object2 or object3 or object4

lua syntax is very consistent and small, but, beside switch(), everything is 
there for sequential, object and functional programming

4)  Graphical (possibly using Bashets as suggested by Riccardo)

 The Awesome 3.4 graphical API has been replaced. The current API documentation 
is here 
http://new.awesomewm.org/apidoc/documentation/03-declarative-layout.md.html
5)  Suggested improvements?
See above

On 30 July 2016 at 01:50, David Sorkovsky 
mailto:davidsorkov...@hotmail.com>> wrote:
Update / Share - Answered questions 2 & 3 myself…

2) Ternary:

x = condition ? if_true : if_false -- Doesn’t 
work

x = condition and if_true or if_false -- Works


3) fif:

Doesn’t exist – make it…

function fif(condition, if_true, if_false)
if condition then return if_true else return 
if_false end
    end

Regards ,

Dave

From: David Sorkovsky 
[mailto:davidsorkov...@hotmail.com<mailto:davidsorkov...@hotmail.com>]
Sent: Friday, 29 July 2016 9:21 PM
To: 'Riccardo Sven Risuleo' 
mailto:riccardos...@gmail.com>>; 
awesome@naquadah.org<mailto:awesome@naquadah.org>
Subject: RE: UPS Status [NUT]

Hi All

Here is my simple widget for the UPS data…

--
-- UPS widget
--
myUPS = {}
myUPS.widget = widget({type = "textbox"})
myUPS.tooltip = awful.tooltip({ objects = { myUPS.widget },})
myUPS.timer = timer({ timeout = 55 })

myUPS.refresh = function()local f = 
io.popen("upsc myups")

local str = f:read("*all")

f:close()
--  
   myUPS.widget.text = (( string.find(str, "ups.status: OL") ) ? 
"Line" : "Batt")
--  
   myUPS.widget.text = fif( string.find(str, "ups.status: OL"), 
"Line", "Batt")

if string.find(str, "ups.status: OL") then

myUPS.widget.text = "Line"

else

myUPS.widget.text = "Batt"

end

myUPS.tooltip:set_text(str)

myUPS.timer:again()