Re: make error in 3.1rc
At 1226297923 time_t, Vinno wrote: > Using Ubuntu with awesome 3.0 fine but when I try the git rc3.1 I get > errors on make. > > Any idea guys? This are not errors but warning. Seems that asprintf is declared with warn_unused_result on your side, which seems weird but why not. I'll try to fix that. Cheers, -- Julien Danjou // ᐰ <[EMAIL PROTECTED]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
Re: [PATCH] Battery widget
On 2008-11-10 00:02:55 (+0100), Gregor Best <[EMAIL PROTECTED]> wrote: > I think the best would be if you added your battery widget to the wiki in > addition to posting it here, so people who are not on the mailing list can use > it, too. > You should add a link to your widget to > http://awesome.naquadah.org/wiki/index.php?title=User_Contributed_Widgets so > people searching the wiki can find it more easily. Good idea. I've now done so at http://awesome.naquadah.org/wiki/index.php?title=Another_battery_widget Kristof -- To unsubscribe, send mail to [EMAIL PROTECTED]
Re: [PATCH] Battery widget
I think the best would be if you added your battery widget to the wiki in addition to posting it here, so people who are not on the mailing list can use it, too. You should add a link to your widget to http://awesome.naquadah.org/wiki/index.php?title=User_Contributed_Widgets so people searching the wiki can find it more easily. Yours, Gregor Best -- To unsubscribe, send mail to [EMAIL PROTECTED]
[PATCH] Battery widget
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've added a battery widget to my .awesomerc.lua, based on something similar for Ion3 (by Jari Eskelinen). There doesn't seem to be anything like that in Awesome now so here's my attempt. It shows the current charge of the battery and the time remaining until the battery is full or empty. If the system is on AC the prefix is 'AC', otherwise it's 'Battery'. It doesn't do any error checking, so I don't even know what can happen if your system isn't exactly like mine. Use at your own risk, yada, yada, yada. - -- - -- {{{ Battery state Widget batterywidget = widget({ type = 'textbox', name = 'batterywidget', align = 'right' }) wicked.register(batterywidget, 'function', function (widget, args) local f = io.open('/proc/acpi/battery/BAT0/info') local infocontents = f:read('*all') f:close() f = io.open('/proc/acpi/battery/BAT0/state') local statecontents = f:read('*all') f:close() local status, _ -- Find the full capacity (from info) local full_cap status, _, full_cap = string.find(infocontents, "last full capacity:%s+(%d+).*") -- Find the current capacity, state and (dis)charge rate (from state) local state, rate, current_cap status, _, state = string.find(statecontents, "charging state:%s+(%w+)") status, _, rate = string.find(statecontents, "present rate:%s+(%d+).*") status, _, current_cap = string.find(statecontents, "remaining capacity:%s+(%d+).*") local prefix, percent, time percent = current_cap / full_cap * 100 if state == "charged" then return "AC: " .. fg("green", "100%") elseif state == "charging" then prefix = "AC: " time = (full_cap - current_cap) / rate elseif state == "discharging" then prefix = "Battery: " time = current_cap / rate end time_hour = math.floor(time) time_minute = math.floor((time - time_hour) * 60) percent = math.floor(percent) local percent_string if percent < 25 then percent_string = fg("red", percent .. "%") elseif percent < 50 then percent_string = fg("orange", percent .. "%") else percent_string = fg("green", percent .. "%") end return prefix .. percent_string .. " " .. string.format("(%02d:%02d)", time_hour, time_minute) end, 2) - -- }}} -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkXYJcACgkQUEZ9DhGwDugJ5QCfd/eCrMxaB/vjkJ0CNtA84+ul nLIAn0hfUGxhiyh4j7OoV0955VEpBTWp =bNth -END PGP SIGNATURE- -- To unsubscribe, send mail to [EMAIL PROTECTED]
[awesome bugs] #369 - visual feedback for application loading
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY. A new Flyspray task has been opened. Details are below. User who did this - Thomas Koch (thkoch2001) Attached to Project - awesome Summary - visual feedback for application loading Task Type - Feature Request Category - Lua libraries Status - Unconfirmed Assigned To - Operating System - All Severity - Very Low Priority - Normal Reported Version - 3.0 Due in Version - Undecided Due Date - Undecided Details - When I use the awesome prompt (in standard debian config) to start a program, I have no clue, whether the program is starting (which could take some seconds for iceweasel), or if I mistyped the command. The next step would be to make it possible to see STDERR, STDOUT of a command I typed in the prompt. More information can be found at the following URL: http://awesome.naquadah.org/bugs/index.php?do=details&task_id=369 You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above. -- To unsubscribe, send mail to [EMAIL PROTECTED]