Re: vicious suggestions

2013-01-30 Thread Daniel Martí
There is a feature I want developed yes, let me explain myself better:

For every device and partition in dio.lua, we have these:

~~
local read  = (stats[1] - last_stats[1]) / interval
local write = (stats[2] - last_stats[2]) / interval

helpers.uformat(disk_usage, device.. read,  read,  unit)
helpers.uformat(disk_usage, device.. write, write, unit)
helpers.uformat(disk_usage, device.. total, read + write, unit)
~~

Thus, total is the read+write speed at a given interval of time.

What I'd like to have implemented is the accumulated count, e.g.
adding the following three lines:

~~
helpers.uformat(disk_usage, device.. acc_read,  stats[1],  unit)
helpers.uformat(disk_usage, device.. acc_write, stats[2], unit)
helpers.uformat(disk_usage, device.. acc_total, stats[1]+stats[2], unit)
~~

I think this practical explanation does a way better job than I did at
expaining myself :)

Regards.

On Thu, Jan 31, 2013 at 01:41:11 +0100, Adrian C. wrote:
 Is there a feature you want developed? Or you are asking to remove 
 total_$unit from disk usage table? 
 
 Then no, a user developed that feature so it's being used at least by 
 him.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpjTRjHdWn88.pgp
Description: PGP signature


vicious suggestions

2013-01-29 Thread Daniel Martí
Hello everyone!

Upon poking around with some vicious widgets, I stumbled upon a small
feature I'd like to have. I could easily use my own modified version of
the widget itself, but I thought sharing the idea with you would be a
good idea before doing that.

dio.lua takes data from /proc/diskstats. AFAIK that file contains total
read and write counts, thus why we are using the differential.  Makes
sense. What about providing a total read/write count for the widget as
well, more or less like net.lua does?

For instance, for net.lua we have tx and rx, and then we work out
up and down from these values. In dio.lua, we could do the same
before working out read and write. (Just as well, is total
necessary? It can be easily obtained from the other two values in
rc.lua)

Regards.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpWWx0MAmhzF.pgp
Description: PGP signature


Re: vicious suggestions

2013-01-29 Thread Daniel Martí
I want the total written and read count values, not the read+write speed
total value. The former is what I implemented myself, and the latter is
what I see as rather unnecessary.

On Tue, Jan 29, 2013 at 10:32:34PM +0100, Adrian C. wrote:
 On Tue, 29 Jan 2013, Daniel Mart? wrote:
 
  What about providing a total read/write count for the widget as
  well, more or less like net.lua does?
 
 Hello I don't understand the request. First you want the total value. 
 
  (Just as well, is total necessary? It can be easily obtained from 
  the other two values in rc.lua)
 
 Then you don't want the total value.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpDWwryKtCJ1.pgp
Description: PGP signature


Re: awesome 3.5.2: Volume Widget doesn't work anymore

2013-01-03 Thread Daniel Martí
On Thu, Jan 03, 2013 at 01:33:36PM +0100, Stefano Di Martino wrote:
 Hi folks,
 this volume widget doesn't work anymore after upgrading awesome:
 http://awesome.naquadah.org/wiki/Volume_control_and_display
 
 I get the error
 
 volume.lua:1: attempts to call global 'widget' (a nil value)
 
 This is line 1:
 
 volume_widget = widget({ type = textbox, name = tb_volume, align
 = right })
 
 Any ideas?

Sorry, but I can't resist asking... is the 3.5.2 bit on the title a
typo? I've been looking at the git commit logs, but I can't find
anything past the 3.5.0 release commit :)

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3

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


Re: running sudo commands from rc.lua

2012-11-13 Thread Daniel Martí
Hello Luis,

Have you tried running Awesome under Xehpyr or simply looking at tty1
for errors (ctrl+alt+F1)? If either sudo or pm-suspend exit with any
stderr or stdout messages, you should see them there.

On Tue, Nov 13, 2012 at 11:51:39AM -0500, Luis Ramirez wrote:
 Hello all,
 
I am trying to run a command with elevated privileges from the
 rc.lua. More specifically, I am trying to get my laptop to go into sleep
 mode when I hit mod+shift+'s'. Here is the code snippet from my rc.lua.
 
 --sleep mode
 awful.key({modkey, Shift   }, s, awful.util.spawn_with_shell(sudo
 pm-suspend)),
 
 
 However, when I hit the keys, nothing happens. I suspect that this happens
 because the of the sudo preceding pm-suspend. Does anyone have any
 suggestions as to what i should do?
 
 Thank You,
 
 Luis Ramirez

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3

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


Re: Unicode support in awful.prompt

2012-10-31 Thread Daniel Martí
On Wed, Oct 31, 2012 at 08:33:12PM +0100, Uli Schlachter wrote:
 Hi,
 
 On 31.10.2012 20:12, Daniel Martí wrote:
  I've been looking for this for some time, but haven't found anything
  yet. Would it be possible for awful.prompt to be compatible with unicode
  characters? This won't make much sense to you now, since they are rarely
  used in the command line (unless some filename was to have them) but it
  would be an excellent feature for further extension.
 
 what exactly do you mean with compatible with unicode characters? I can 
 enter
 öäüß into a prompt here without any problem (and I think that they are also
 passed on correctly).

I mean that, exactly. How can you enter such characters? I can't. Even
when moving rc.lua away and thus using the default config, it won't
work.

Locales are set up correctly, by the way. Using awesome 3.4.13.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpXnNcnot17j.pgp
Description: PGP signature


Re: Unicode support in awful.prompt

2012-10-31 Thread Daniel Martí
On Wed, Oct 31, 2012 at 09:36:49PM +0100, Uli Schlachter wrote:
 On 31.10.2012 21:13, Daniel Martí wrote:
  On Wed, Oct 31, 2012 at 08:33:12PM +0100, Uli Schlachter wrote:
  Hi,
 
  On 31.10.2012 20:12, Daniel Martí wrote:
  I've been looking for this for some time, but haven't found anything
  yet. Would it be possible for awful.prompt to be compatible with unicode
  characters? This won't make much sense to you now, since they are rarely
  used in the command line (unless some filename was to have them) but it
  would be an excellent feature for further extension.
 
  what exactly do you mean with compatible with unicode characters? I can 
  enter
  öäüß into a prompt here without any problem (and I think that they are also
  passed on correctly).
  
  I mean that, exactly. How can you enter such characters? I can't. Even
  when moving rc.lua away and thus using the default config, it won't
  work.
  
  Locales are set up correctly, by the way. Using awesome 3.4.13.
 
 Uhm. I press the key that is labeled with ö on my keyboard. Then I release
 that key again. Afterwards, I do the same with ä, ü and ß. If I feel
 really fancy, I even press the shift key at the same time. Amazing, I know.

Seriously now, it's not working for me.

I found something interesting: Doing Alt Gr + some letter gives out
strange characters, like ß or æ. They work on the prompt. BUT when doing
characters like à or á, which need two separate keystrokes in time (i.e.
they can't be pressed both at once), only the last keystroke is caught.

I suppose that's the issue.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpNZfpYlNZnP.pgp
Description: PGP signature


Re: Emacs not tiling to 100%

2012-07-14 Thread Daniel Martí
On Sat, Jul 14, 2012 at 01:39:16PM +0100, David Gomes wrote:
 Didn't work. I did that, restarted awesome wm, reopened emacs, and I have
 the exactly same problem.

Are you 100% sure that rule is correctly applied to all clients? I don't
see any other reason as to why Awesome might behave this way.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpCpuiwwwHZ9.pgp
Description: PGP signature


Re: Emacs not tiling to 100%

2012-07-14 Thread Daniel Martí
Excellent eye :-) That's definitely it.

On Sat, Jul 14, 2012 at 05:59:53PM +0200, Vincent Bernat wrote:
  That is the relevant part of the code, I'm pretty sure I am doing it right
  :S
 
 This should be `size_hints_honor`.

-- 
Daniel Martí - mv...@mvdan.cc - GPG 0x58BF72C3


pgpubK0KsNNGB.pgp
Description: PGP signature


Re: Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.naquadah.awesome.awful was not provided by any .service files

2012-02-28 Thread Daniel Martí


My local hack to make dbus find itself:

XAUTHORITY=/home/psychon/.Xauthority DISPLAY=:0 notify-send foo

Uli

I use that too, with an if statement comfirming I'm the user and not root via 
`whoami`


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


Re: Awesome wm in Kindle Touch!

2012-01-19 Thread Daniel Martí
May I ask... wouldn't it be easier (or at least more efficient) to figure out a 
way to port Debian to such devices? I bet the architecture is already supported.

Julien Danjou jul...@danjou.info wrote:

On Tue, Jan 17 2012, Kan-Ru Chen wrote:

 You might be interested to know that our beloved window manager was
used in the
 Amazon product Kindle Touch! You can get the source code from
 http://www.amazon.com/gp/help/customer/display.html?nodeId=200203720

 And here is the rc.lua extracted from the device:
 https://dl.dropbox.com/u/2992761/rc.lua

This is really awesome.

Thanks Kan-Ru.

-- 
Julien Danjou


Re: Terminator and gnome-terminal shrinks while moving

2012-01-12 Thread Daniel Martí
I can confirm urxvt doesn't shrink. I'll try the other ones when I get home and 
let you know.

Daniel Hilst danielhi...@gmail.com wrote:

I do:
Open terminal -- Press Mod4-r and type gnome-terminal or terminator
Move it -- Hold Mod4, click with 1th buttom on it and move around

Result: The window shrinks while moving.
Expected: The window moving but keeping its size

gnome-terminal shrinks util fit one line.
terminator shrinks less but still shrinks

xterm, rxvt and terminal(xcfe4) behave as expected, I mean, do not
shrink.

Versions:

geckos ~/.config/awesome $ awesome --version
awesome v3.4.11 (Pickapart)
  • Build: Dec  8 2011 21:33:49 for i686 by gcc version 4.6.2 
(Enjolras@lisa)
  • D-Bus support:

geckos ~/.config/awesome $ gnome-terminal --version
GNOME Terminal 3.2.1

geckos ~/.config/awesome $ terminator --version
terminator 0.96

I'm on archlinux i686
geckos ~/.config/awesome $ uname -a
Linux hilstdsk 3.1.5-1-ARCH #1 SMP PREEMPT Sun Dec 11 06:26:14 UTC 2011

i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD
GNU/Linux

Cheers!


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


Re: Make nautilus manage all desktops

2012-01-09 Thread Daniel Martí
CC the list if you want to get some answers :-)

I'm sorry I can't help you much further. My knowledge on how does gnome work is 
very poor. I suggest you search the wiki, the mailing list archive or even 
ddg.gg. If you have no luck, I bet Uli or any of our gurus have the answer to 
your question.

Cheers!

Marco net...@lavabit.com wrote:

On 2012-01-09  Daniel Martí danielmarti.deb...@gmail.com
wrote:

 Yes, your problem  relates to tags. See  how wiboxes are
 attached to every tag;

This is configured in the rc.lua file apparently.

 nautilus probably needs to do so as well.

At the moment nautilus is  started from the gnome session.
I'm not sure what I have to do. Should I move the nautilus
start from gnome to the rc.lua file?

Marco


Re: Feeding output to naughty

2012-01-02 Thread Daniel Martí
I would use the keyboard shortcut bindings from rc.lua to call sexec(mpc 
current) as well as naughty.notify. Or you could run an external script with 
awesome-client.

Cheers!

Phynix phynix...@gmail.com wrote:

Is there an easy way or perhaps a website that can be suggested where I
can
pipe output from a command to awesome and bind it to a keypress. For
instance I want to bind mod+i to mpc current and have naughty display
the
output from the command. Thanks.


Re: Feeding output to naughty

2012-01-02 Thread Daniel Martí
Right, didn't understand he wanted its output. Yes, io.popen will probably do 
the trick :-).

Anurag Priyam anurag08pri...@gmail.com wrote:

On Tue, Jan 3, 2012 at 7:25 AM, Daniel Martí
danielmarti.deb...@gmail.com wrote:
 I would use the keyboard shortcut bindings from rc.lua to call
sexec(mpc
 current) as well as naughty.notify. Or you could run an external
script
 with awesome-client.

`sexec` won't capture the output, would it? You will have to use Lua's
`io.popen` sort of thing, no?

-- 
Anurag Priyam


Wallpaper widgets

2011-12-16 Thread Daniel Martí
Hey guys!

I have seen some kind of widgets (mostly graphs) positioned on awesome's 
wallpaper many times in screenshots, but I have never been able to find how to 
configure them. I've searched for a long time, but I am probably not using the 
right keywords.

How would you create such widgets in the background? Maybe with vicious?

Thank you very much!

Re: Wallpaper widgets

2011-12-16 Thread Daniel Martí
Conky is the easy way to go, yes, but since Awesome has its own widgets,
why use conky? I think it would be better and easier to just use
awesome.

I found these two, which look like conky (never used it, so I am
not sure):
http://ompldr.org/vNmRvcg
http://img143.imageshack.us/img143/7987/aprilx.png

Not sure about this one:
http://i.imgur.com/uDj0X.png

Then there's this one, which doesn't seem like conky to me. The calendar
and the clock... how did he get them?
http://img841.imageshack.us/img841/7943/awesomescrot20100809144.png

I haven't researched conky yet, is it any good? Would it mean much
extra RAM/CPU usage?

And, as far as awesome... I've thought about creating a wibox which
would stay at the bottom of the tags, and which would contain these
widgets. I am not sure how to do that; I do not even know if it's
possible.

Thanks!

On Fri, Dec 16, 2011 at 04:14:25PM +0100, Zsolt Udvari wrote:
 Hello!
 
 Can you show an example?
 
 Zsolt
 
 
 2011/12/16 Daniel Martí danielmarti.deb...@gmail.com:
  Hey guys!
 
  I have seen some kind of widgets (mostly graphs) positioned on awesome's
  wallpaper many times in screenshots, but I have never been able to find how
  to configure them. I've searched for a long time, but I am probably not
  using the right keywords.
 
  How would you create such widgets in the background? Maybe with vicious?
 
  Thank you very much!


signature.asc
Description: Digital signature


Re: can't resize tiled windows

2011-12-08 Thread Daniel Martí


A) awesome v3.4.3 (Engines)
• Build: Feb  2 2010 06:58:10 for i686 by gcc version 4.4.3
(buildd@rothera)
 • D-Bus support: yes

Hmm, that's a fairly old version of awesome. Which might be what's causing you 
problems.

B) I've noticed it with gnome-terminal which is what I usually run
tiled in big quantities. I've tried to replicate it with gedit with no
luck (but then again some times I don't have any problem with
terminals also). I noticed something however: Now that I was trying to
replicate the issue, when I opened 4 gedit  or terminal windows I got
one master window to the left and 3 slave windows to the right. In my
1st tag were I still have the 4 terminals with the resizing problem I
mentioned still open, they are tiled two at the left side and two at
the right side of the screen. Tried mod4+ctrl+H/L but I can't achieve
that 2+2 arrangement!?

Have you tried using the mouse?

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


Re: ontop for floating clients

2011-12-01 Thread Daniel Martí
I would like to know the answer to his question as well. Thanks for your time.

-Daniel

Adam adam_...@yahoo.com wrote:

Some applications, such as gimp. have windows that are floating by
default.  I
would like to make those windows also ontop.  Unfortunately when I add
a
callback rule, the floating property of the client is always nil.

client.add_signal(
   property::floating,
   function(c)
  c.ontop=c.floating
   end
 )

does not work either.

What am I doing wrong?

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


Re: Obvious widgets not work for me

2011-11-27 Thread Daniel Martí
Note that the latest version of awesome is 3.4.11. Some little things changed 
in how widgets are registered, for example the dio.lua one. I had headaches 
with that one, turned out I was running 3.4.10.

Good luck!

anonymous anonymous t...@2ch.so wrote:

awesome v3.4.10 (Exploder)
• Build: May 22 2011 23:55:29 for i686 by gcc version 4.6.0
(mockbuild@mock)
 • D-Bus support: ✔
Obvious is from GIT repository. When I'm doing like described in manual
I got no errors after restarting awesome and widgets are not displayed
in tray. Also awesome display some tags from 1 to 10 with my custom
tags. I've tried to run keymap_switch and alsa_sound.

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


Re: Obvious widgets not work for me

2011-11-27 Thread Daniel Martí
I remember, for example, having to call register with the arguments write_mb, 
2, sda, and with the newer vicious package in Sid I was able to run it with 
just sda write_mb, 2 as stated in the online docs. I was having problems 
because I was using the new way with the old scripts.

Adrian C. an...@sysphere.org wrote:

On Sun, 27 Nov 2011, Daniel Martí wrote:

 for example the dio.lua one. I had headaches with that one

Are you talking about Vicious widgets? DiskIO widget is not related to 
awesome versions. 
That widget was completely rewritten months ago to collect information 
of all storage devices in one run, so there were some changes in usage 
which came with that functionality.

-- 
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E  929F D5CB 31B7 D20A 0618

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


Re: amixer hangs

2011-11-13 Thread Daniel Martí
I use amixer with sexex() and it works. Maybe you have pulseaudio installed?

Zsolt Udvari udvzs...@gmail.com wrote:

Maybe 'amixer' hangs? I think you should try run these commands from
commandline and check it first.

Zsolt


2011/11/13 Daniel Hilst Selli danielhi...@gmail.com:
 Anyone knows why awesome hangs when I put os.execute(amixer get Master) or
 os.execute(amixer -c0 -D default get Master) on rc.lua??

 []'s

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


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



Re: amixer hangs

2011-11-13 Thread Daniel Martí
That's exactly what I meant :-) BTW, are you able to listen to two audio 
outputs at once? If I am using ncmpcpp, mplayer won't have any sound.

Anurag Priyam anurag08pri...@gmail.com wrote:

On Sun, Nov 13, 2011 at 2:31 PM, Daniel Martí
danielmarti.deb...@gmail.com wrote:
 Maybe you have pulseaudio installed?

Every time I install something that installs pusleaudio as a
dependency, my sound system breaks. So I have made it a policy to
never install pulseaudio on my machine.

/me is a super happy sans-pulseaudio user :).

-- 
Anurag Priyam



Re: Widget updating

2011-10-31 Thread Daniel Martí
That's very interesting, and I know dio can get any info from any partition or 
device. But the question is: How do I make it show up the data just for the 
mounted partitions?

Thanks!

Jörg Thalheim jthalh...@gmail.com wrote:

This would block awesome.
But there a lua-bindings[1] avaible, which provide a non-blocking way.
Logwatcher[2] is a example for this.
But this is not needed because all partititions/disk are already
stored in the table, you got back from dio.

[1] http://www3.telus.net/taj_khattra/luainotify.html
[2] https://github.com/Mic92/lognotify/blob/master/init.lua

2011/10/31 Zveroy zve...@gmail.com:
 inotifywait



-- 
Gruß Jörg

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



Re: Fwd: Widget updating

2011-10-29 Thread Daniel Martí
Sorry, forgot to send it to the list again :-)

Jörg Thalheim jthalh...@gmail.com wrote:

-- Forwarded message --
From: Daniel Martí danielmarti.deb...@gmail.com
Date: 2011/10/29
Subject: Re: Widget updating
To: jthalh...@gmail.com


Exactly, yes.

Jörg Thalheim jthalh...@gmail.com wrote:

 Do you want dio from vicious automatic show the disk io about new
 devices as they are added to the system?

 2011/10/28 Daniel Martí danielmarti.deb...@gmail.com:
  Dear awesome fellows,
 
  I'm trying to make a dio (disk input/output) which adds new devices as they
  are mounted. So, for instance, it would have /dev/sda detected as the system
  hard disk, and it would append the data for /dev/sdX in case an external
  drive was to be mounted.
 
  How would you do that? Looking at 'mount' every few seconds, looking at
  /media/xxx, making the udev rules call a bash script with awesome-client...?
 
  Thanks!
 
  Thanks!



-- 
Gruß Jörg

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



Widget updating

2011-10-28 Thread Daniel Martí
Dear awesome fellows,

I'm trying to make a dio (disk input/output) which adds new devices as they are 
mounted. So, for instance, it would have /dev/sda detected as the system hard 
disk, and it would append the data for /dev/sdX in case an external drive was 
to be mounted.

How would you do that? Looking at 'mount' every few seconds, looking at 
/media/xxx, making the udev rules call a bash script with awesome-client...?

Thanks!

Thanks!

Re: Controling brightness

2011-10-25 Thread Daniel Martí
That is very clever. Thanks for sharing it with all of us.

Daniel

William Shackleton w.shackle...@gmail.com wrote:

I wrote a similar program to control the brightness; it's a C program which 
sets the value and can be run through awesome's run command.

The advantage of writing a simple C program to do this (and storing it in 
/usr/local/bin) is that the setuid bit can be set; this makes the program run 
as root no matter who runs it. Shell scripts can't have the setuid bit set.


Here is the C program:


#includestdio.h


int main(int argc, char **argv) {

if(argc = 1) {

return 0;

}

char* bright = argv[1];

char buf[300];

int n = snprintf(buf, 300, sh -c \echo %s  
/sys/class/backlight/acpi_video0/brightness\, bright);

if(n  0 || n  300) {

puts(Error formatting string\n);

return 1;

}

system(buf);

return 0;

}


Compile this, copy it to /usr/local/bin, then run 'sudo chmod u+s program' to 
set the setuid bit, allowing it to run as root.


Please feel free to use this program from your lua script.


Will Shackleton


On 25 October 2011 16:58, Daniel Hilst Selli danielhi...@gmail.com wrote:

Hey, I build a little class to control brithness, but for it I have to read and 
write to /sys/class/backlight/acpi_video0/brightness. Only root
can do it.. and the permissions are reset on reboot..

Here is the code http://ideone.com/lhFDQ

Any idea??

Thanks!

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




Re: Controling brightness

2011-10-25 Thread Daniel Martí
You made your point, but since I don't like sudo nor have it installed I'll 
stick with the other solution :-) Thanks!

immerrr again... imme...@gmail.com wrote:

(whoops, first message went out as a direct reply)

On 10/25/2011 09:22 PM, Daniel Martí wrote: 

Wouldn't that be dangerous, to set sudo without any password prompt?

The point is to enable that only for certain commands (or absolute paths, 
sudoers allows that, see the manual).

Well, ofc, you need to make sure only read-execute permissions are set on the 
script. And after that, I think, it's equivalent to the earlier solution, i.e. 
it's rather safe unless someone has root permissions to chmod/change/overwrite 
the script. Binary files induce some more security by obscurity (you need to 
read  understand disassembly to understand what's happening), but one still 
can cat the necessary contents into setuid-enabled file if root account is 
compromised.
-- Cheers, immerrr 

Re: doc and or examples for obvious

2011-10-25 Thread Daniel Martí
You might have more luck emailing julien about this. And, if you do get an 
answer, it would be very kind of you to forward it to this list :-)

Thorsten Sperber li...@aero2k.de wrote:

On 19.10.2011 11:52, Thorsten Sperber wrote:
 On 19.10.2011 10:57, Uli Schlachter wrote:

 Hi,

 I haven't come up with any good idea yet, so:

 Anything on awesome's stderr? Assuming you use linux, 'ls -l
 /proc/$(pidof
 awesome)/fd/2' will tell you where awesome's stderr goes to.

 Nope, no output in both systems. I always have a xterm open with tail
 -f $log, because I'm continously doing stupid syntax errors in lua ;D




two weeks, no response, no further ideas? Isn't there really anyone
using this? I can't debug something which doesnt write any error on
stdout/stderr.

Thorsten


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



Re: no .xinitrc

2011-09-26 Thread Daniel Martí
Xenia,

By default there's no ~/.xinitrc. I use it to launch apps (redshift, wicd, mpd, 
etc + ) and then awesome, without the  as it is not to be run in the 
background.

Good luck! :)
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Xenia yor...@googlemail.com wrote:

Dear list,

everywhere I read about the holy ~/.xinitrc, but I don't have this
file. Is there an equivalent file or is it called different? Or should I
simply create it? By the way, I don't have a ~/.xsession either, but
~/.xsession-errors does exist.

Thanks,

Xenia

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



Awful rule classification

2011-09-18 Thread Daniel Martí
Dear awesome community,

I use the awful.rules.rules method to classify my apps and give them 
properties, such as tags o focus. It works perfectly with graphical 
applications such as Uzbl or Iceweasel, but I don't know how to make it work 
with cli (command-line interface) apps such as ranger or ncmpcpp.

I will explain myself. As those cli apps run under a terminal (lxterminal at 
the moment), their class in the rule system is lxterminal rather than 
ranger or ncmpcpp. That way, I can't get rules to behave correctly 
(differently) over my cli apps, as they work either for all lxterminal 
instances the same way or for none at all.

Any ideas? Should I use some other terminal emulator, i.e. urxvt? Or is there 
any other way to solve it?

Thanks so much for reading!

--Daniel

Re: Awful rule classification

2011-09-18 Thread Daniel Martí
True. When there is not one term to specify the whole issue (or when you do not 
know it), scroogling is a cul-de-sac.

If you need any help with the wiki, just tell me :)

Anurag Priyam anurag08pri...@gmail.com wrote:

On Mon, Sep 19, 2011 at 2:49 AM, Daniel Martí
danielmarti.deb...@gmail.com wrote:
 Thanks for your help. I was not aware of that being already discussed.

Difficult to Google too. I will add it to the FAQ section on the wiki
when I get time (and if it is not already there). I already have a
pending job there - proposed merging tips regarding naughty into one,
but couldn't get time :-|.

-- 
Anurag Priyam



Re: Create widget with awesome-client

2011-09-10 Thread Daniel Martí
sda read_mb doesn't work. I must use vicious.register(iowidget, 
vicious.widgets.dio, ${read_mb}, 2, sda). Is this normal?

Jörg Thalheim jthalh...@gmail.com wrote:

You have not to rewrite it.
I already did this in the past, to display more than one partition in a widget:
http://git.sysphere.org/vicious/commit/?id=c2f7fbcf2358cf83b103954ec0dc579aea39e3cb
I advice you to use a format function as described in the README

iowidget = widget({ type = textbox })
vicious.register(iowidget, vicious.widgets.dio,
function (widget, args)
local text = 
-- simply check whether the args table contains the disk/partition
if args[{sda total_s}] =~ nil then
-- and then add it:
text = string.format(%ssda %skb/%skb , text, args[{sda
write_kb], args[{sda read_kb}])
end
-- look the same way for some more disk. Alternatively use a loop.
return text -- The value returned by the function is assigned to
iowidget.
end)

I use it in a similar way here. I my own config:
https://github.com/Mic92/awesome-dotfiles/blob/master/rc.lua#L372

2011/9/8 Daniel Martí danielmarti.deb...@gmail.com:
 I hadn't thought about re-writing dio. I'll try it on my own first, and if I
 need any assistance I'll come back.

 Thanks!

 Jörg Thalheim jthalh...@gmail.com wrote:

 My first rewrite of dio included the feature, to sum up the disk i/o
 of every avaible disk to total numbers. Is this what you want? (I
 still have the code avaible)
 Or do you want to see every disk separately? In this case, you could
 use a format function to guess the new disks.

 Choose between this options and we can find a solution.

 2011/9/6 Daniel Martí danielmarti.deb...@gmail.com:
  Hey guys!
 
  I'm very happy with the vicious scripts, especially the dio one (disk
  input/output). I configured the udev rules to automount usb devices and
  show
  up a notification via naughty, and it works.
  Now, i'd like the same script (that uses awesome-client and naughty,
  called
  by udevd) to create and show a dio widget alongside the constant
  /dev/sda
  one, showing up I/O stats for the newly
 mounted device.
 
  I have two ideas, but both got me stuck.
  -- use one iowidget holding sda i/o at boot and add the new device's
  stats
  at the end of it. Is that possible?
  -- create a brand new widget for every newly mounted device. This seems
  easier to set up, but my experience with awesome is very small
  (~3months)
  and i don't know how to make the new widget show up in a wibox that has
  already been assigned some widgets.
 
  Thank you so much for reading and for your help.



 --
 Gruß Jörg




-- 
Gruß Jörg



Re: Create widget with awesome-client

2011-09-08 Thread Daniel Martí
I hadn't thought about re-writing dio. I'll try it on my own first, and if I 
need any assistance I'll come back.

Thanks!

Jörg Thalheim jthalh...@gmail.com wrote:

My first rewrite of dio included the feature, to sum up the disk i/o
of every avaible disk to total numbers. Is this what you want? (I
still have the code avaible)
Or do you want to see every disk separately? In this case, you could
use a format function to guess the new disks.

Choose between this options and we can find a solution.

2011/9/6 Daniel Martí danielmarti.deb...@gmail.com:
 Hey guys!

 I'm very happy with the vicious scripts, especially the dio one (disk
 input/output). I configured the udev rules to automount usb devices and show
 up a notification via naughty, and it works.
 Now, i'd like the same script (that uses awesome-client and naughty, called
 by udevd) to create and show a dio widget alongside the constant /dev/sda
 one, showing up I/O stats for the newly mounted device.

 I have two ideas, but both got me stuck.
 -- use one iowidget holding sda i/o at boot and add the new device's stats
 at the end of it. Is that possible?
 -- create a brand new widget for every newly mounted device. This seems
 easier to set up, but my experience with awesome is very small (~3months)
 and i don't know how to make the new widget show up in a wibox that has
 already been assigned some widgets.

 Thank you so much for reading and for your help.



-- 
Gruß Jörg



Create widget with awesome-client

2011-09-06 Thread Daniel Martí
Hey guys!

I'm very happy with the vicious scripts, especially the dio one (disk 
input/output). I configured the udev rules to automount usb devices and show up 
a notification via naughty, and it works. 
Now, i'd like the same script (that uses awesome-client and naughty, called by 
udevd) to create and show a dio widget alongside the constant /dev/sda one, 
showing up I/O stats for the newly mounted device.

I have two ideas, but both got me stuck.
-- use one iowidget holding sda i/o at boot and add the new device's stats at 
the end of it. Is that possible?
-- create a brand new widget for every newly mounted device. This seems easier 
to set up, but my experience with awesome is very small (~3months) and i don't 
know how to make the new widget show up in a wibox that has already been 
assigned some widgets.

Thank you so much for reading and for your help.

Re: [off-topic] A good terminal emulator for tiling WMs?

2011-09-06 Thread Daniel Martí
If urxvt a.k.a. rxvt-unicide is that good, it should have some option to suit 
our needs.

Has any of you tried lxterminal yet? I've been using it because it is basic and 
does all I need. It might not have that problem.

Renato Botelho rbga...@gmail.com wrote:

On Tue, Sep 6, 2011 at 4:21 PM, Vitor Eiji Justus Sakaguti
vitorei...@gmail.com wrote:
 Hi,

 I don't know if you guys suffer as much as I do having terminal
 emulators that don't handle resizing very well. I think this is a
 pretty big deal for tiling window managers users, so I think most of
 you must have a good solution, hence, I'm asking here.

 Well, the problem with xterm (my terminal of choice) is that when its
 size shrinks it loses all the info outside its boundaries, so if you
 expand it again, there will be a lot of empty space and all the info
 there will be gone.
 Urxvt does indeed keep the info, but it does so (as far as I could
 find) by breaking the lines and redrawing itself accordingly, making
 it all look rambled (IMHO).
 Some other terminals, like sakura, do keep the info and do not ramble
 everything, but I couldn't find a way to scroll horizontaly.

 So, considering all this, what terminal emulator do you recommend? Did
 I miss any feature in one of those that I mentioned?

Hello,

I had similar problems with xterm, gave up and moved to urxvt, it has
the issue you described but it's fine for me until i find a better solution.

AFAIR, eterm is the one that worked fine when i did some tests, i just
didn't move to it because i'm using url-select plugin for urxvt and it is
really useful for me. I'm still looking for a better terminal that have a
similar feature.

Try eterm and let us know if it is an option for you.

Best Regards
-- 
Renato Botelho

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