Re: [dwm] Stats script

2009-05-09 Thread Jeremy Jay
I have mine just clock and date, but it'll show other stats when they are interesting ie high cpu usage, discharging/low battery, low/off wifi, etc Jeremy On Sat 09 May 2009 - 10:47AM, Kurt H Maier wrote: On Sat, May 09, 2009 at 11:49:53AM +0200, sta...@cs.tu-berlin.de wrote: I noticed I very

Re: [dwm] Problem with notify-send from acpi events

2009-05-03 Thread Jeremy Jay
my guess would be that DISPLAY isn't getting set. acpid is probably run as root or before the env. variable exists and so can't read it. Jeremy On Mon 04 May 2009 - 12:12AM, Preben Randhol wrote: Hi I have setup my Asus Eee to run commands when I press the function keys (like power up/down

Re: [dwm] dwm's future

2009-04-27 Thread Jeremy Jay
Don't be a bigot, it just makes you look like a moron too. Free Software is about choice, forcing people to use an app just because you use it is pretty stupid and annoying and just gives people a negative association with it. Let people make their own choices. Last I checked it was very easy to

Re: [dwm] dual-head and floats on all tags (and one feature request)

2009-04-23 Thread Jeremy Jay
This is completely untested, but should do what you ask, just add to config.h and bind it to a key... -- void focusurgent(const Arg *arg) { Client *c; for(c = stack; c !(c-isurgent); c = c-snext); if(sel sel != c) { grabbuttons(sel, False); XSetWindowBorder(dpy, sel-win,

Re: [dwm] dual-head and floats on all tags (and one feature request)

2009-04-23 Thread Jeremy Jay
Aw I was so close on the urgent patch, just missed the Arg ptr. Here's a working version: { MODKEY, XK_u, focusurgent, {0} }, void focusurgent(Arg *x) { for(c = stack; c !(c-isurgent); c = c-snext); if(sel sel != c) { grabbuttons(sel, False);

Re: [dwm] OT: Wireless in dwm

2009-04-20 Thread Jeremy Jay
I used to use stalonetray to be able to access nm-applet for wireless. But I've recently gotten a pretty good config going for wpa_supplicant that auto-connects to my secure wireless, but also uses any unsecured networks automatically when I'm on the road. It's pretty straightforward to setup,

Re: [dwm] OT: Wireless in dwm

2009-04-20 Thread Jeremy Jay
it a low priority so any defined blocks are preferred. network={ key_mgmt=NONE priority=-999 } --- Jeremy On Mon 20 Apr 2009 - 02:04PM, Lee Azzarello wrote: On Mon, Apr 20, 2009 at 10:05 AM, Jeremy Jay dinkuma...@gmail.com wrote: I used to use stalonetray

Re: [dwm] irssi + screen + urxvt in dwm - window hint urgent not working

2009-04-16 Thread Jeremy Jay
. On Tue, Apr 14, 2009 at 4:47 PM, Jeremy Jay dinkuma...@gmail.com wrote: I've gotten it to work, are you all actually inserting a real ^G or just the characters '^' and 'G'. if you edit .screenrc with vim, for example, type [ ctrl-v ctrl-g ] to insert the right character. My config has

Re: [dwm] irssi + screen + urxvt in dwm - window hint urgent not working

2009-04-14 Thread Jeremy Jay
I've gotten it to work, are you all actually inserting a real ^G or just the characters '^' and 'G'. if you edit .screenrc with vim, for example, type [ ctrl-v ctrl-g ] to insert the right character. My config has: bell_msg  ring ring window %n hope that helps! Jeremy On Tue 14 Apr 2009 -

Re: [dwm] suckless.org stylesheet glitch

2009-03-10 Thread Jeremy Jay
It's not that slow to me... although it could definitely use some caching to keep from reloading the stylesheets every time. (Last-Modified header etc) Jeremy On Wed 11 Mar 2009 - 12:59AM, Uriel wrote: Good point, probably the werc stylesheet should be split and reorganized to avoid this kind

Re: [dwm] minimal communication

2009-03-06 Thread Jeremy Jay
I'll second bitlbee, although I still use it with irssi. I do need to try out sic sometime though... Jeremy On Sat 07 Mar 2009 - 01:40AM, Uriel wrote: Bitlbee is the only remotely sane jabber client i know of uriel On 3/7/09, Scytrin dai Kinthra scyt...@gmail.com wrote: I'm slowly

Re: [dwm] CLI color/font override patch

2009-02-24 Thread Jeremy Jay
Do you really change your font/colors that often? If you want to avoid the compile I'm sure it'd be just as easy to use a hex-editor on the strings. Jeremy On Tue 24 Feb 2009 - 01:34PM, Ian Daniher wrote: Hi All, Eager to avoid the excessive recompiling of dwm on a 433mhz proc(takes

Re: [dwm] Issues with border

2009-02-19 Thread Jeremy Jay
I agree too. The shimmy going from a one-client tag to a multi-client tag and back again is very distracting. Jeremy On Thu 19 Feb 2009 - 02:57PM, Premysl Hruby wrote: On (19/02/09 13:34), Anselm R Garbe wrote: To: dwm mail list dwm@suckless.org From: Anselm R Garbe garb...@gmail.com

Re: [dwm] floating rule when only WM_NAME defined?

2009-02-16 Thread Jeremy Jay
My only thought is that the XGetClassHint in applyrules is failing and so the rules are never applied try this (untested) patch... Jeremy On Mon 16 Feb 2009 - 12:58PM, Adam wrote: hello. I have a program which opens a graphics display window which I would like to always be floating.

Re: [dwm] dmenu - how to autoconfirm selection in case of exact match?

2009-02-16 Thread Jeremy Jay
and patch. So, would it be sufficient to download dmenu.c and run patch autorun.diff ? 2009/2/16 Jeremy Jay dinkuma...@gmail.com Did you even try to look at the code? I bet it took you longer to write up the email that it took to add the 3 lines of code in the patch attached. could

Re: [dwm] dmenu - how to autoconfirm selection in case of exact match?

2009-02-16 Thread Jeremy Jay
OP doesn't want to hit enter every time, dmenu won't return unless you do, so a patch is necessary... Jeremy On Mon 16 Feb 2009 - 07:32PM, yy wrote: Another option, if you don't want to patch, is to add those letters to dmenu input (with simples echoes in dmenu_path, or even processing an

Re: [dwm] Multimedia, print screen keys

2009-02-14 Thread Jeremy Jay
spawn/execvp() is supposed to get each argument as a pointer, not all-in-one. all the commands you are having trouble with also happen to have arguments. On top of that, I don't think you have the right arguments for amixer... Here's the relevent parts of my config for an example: - static

Re: [dwm] dvtm 0.5 compile failed on ubuntu 8.10 amd64

2009-02-03 Thread Jeremy Jay
looks like the header isn't working properly, check that one of /usr/include/ncurses.h or /usr/local/include/ncurses.h is valid if that's fine, then you may want to check that the compiler and ncurses library are the same arch (64bit in your case) Jeremy On Tue 03 Feb 2009 - 02:17PM, Ye Xu

Re: [dwm] dvtm 0.5 compile failed on ubuntu 8.10 amd64

2009-02-03 Thread Jeremy Jay
If you're using ubuntu, why did you compile it? you should use the package provided with your distro. Jeremy On Tue 03 Feb 2009 - 04:47PM, Ye Xu wrote: On Tue, Feb 3, 2009 at 14:58, Jeremy Jay dinkuma...@gmail.com wrote: looks like the header isn't working properly, check that one

Re: [dwm] dmenu filename tab-completion patch

2009-01-29 Thread Jeremy Jay
the single function I've done here... Jeremy On Thu 29 Jan 2009 - 02:22PM, bill lam wrote: On Wed, 28 Jan 2009, Jeremy Jay wrote: request granted =) first tab will do longest completion, subsequent tabs will cycle through all choices. Thank you for prompt action! If you could consider

Re: [dwm] dmenu filename tab-completion patch

2009-01-28 Thread Jeremy Jay
On Wed 28 Jan 2009 - 12:38PM, bill lam wrote: It is very useful! Can it be extended to handle tabtab ? request granted =) first tab will do longest completion, subsequent tabs will cycle through all choices. I dont know if others tried or not, but my example didnt work... OpenOffice (and a

[dwm] dmenu filename tab-completion patch

2009-01-27 Thread Jeremy Jay
I always try to do this and get frustrated when I remember it doesn't work, but today I actually looked up the man pages and found out how easy it is to get dmenu to support filename tab-completion. This patch adds a small function that completes a filename argument as far as possible. If

Re: [dwm] Layers

2009-01-22 Thread Jeremy Jay
sounds like this could be very easily done by re-ordering the clients list, since the draw order determines the layering IIRC. i don't feel like thinking that hard, so here's pseudocode: togglelayers() { if( sel-isfloating ) { // for each client in clients // if it

Re: [dwm] C-version of dwm status (no xsetroot needed)

2008-12-19 Thread Jeremy Jay
On Tue 16 Dec 2008 - 04:08PM, Donald Chai wrote: use his status program. His intent is that anyone who can't figure out xsetroot can use 4 X11 procedures from C. actually my intent was to get away from bash scripts/whatnot and having to use so many different programs to generate a status line.

[dwm] C-version of dwm status (no xsetroot needed)

2008-12-16 Thread Jeremy Jay
script :) Jeremy // C verison of dwm status script -- no need for xsetroot // by Jeremy Jay // // compile with: gcc -lX11 -s -o dwmstatus dwmstatus.c #include string.h #include stdio.h #include stdlib.h #include time.h #include unistd.h #include X11/Xatom.h #include X11/Xlib.h // modify BAT0 here

Re: [dwm] xsetroot/status scripting using rc shell?

2008-12-15 Thread Jeremy Jay
doesn't look like xsetroot would get the string as a single parameter, it needs to be quoted. pretend like the backtick just gets replaced with the text inside it and you'll see: xsetroot -name `{echo test test} = xsetroot -name test test xsetroot -name `{echo 'test test'} = xsetroot -name

Re: [dwm] dwm and dualhead

2008-12-12 Thread Jeremy Jay
5.3.1) it does not find the function usegrab (used in movemouse and resizemouse... On Thu, Dec 11, 2008 at 10:59:16PM -0500, Jeremy Jay wrote: Here's my XRandR and multi-screen patch, its pretty much not what you've asked for here, but I'll throw it out as a starting point. I haven't had

Re: [dwm] dwm and dualhead

2008-12-11 Thread Jeremy Jay
It should probably be abstracted further, to just a list of monitor positions in the buffer. I'm working on an xrandr patch to do just this (I took all the recent messages about xrandr as a challenge =) Anselm: re: method #3, the screen-tagging approach, I think it would be simple to use part of

Re: [dwm] dwm and dualhead

2008-12-11 Thread Jeremy Jay
Here's my XRandR and multi-screen patch, its pretty much not what you've asked for here, but I'll throw it out as a starting point. I haven't had a chance to test it much, so don't yell at me if your screen explodes... one tag for all screens. status bar is only shown on screen 0 (although this

Re: [dwm] xprop patch

2008-12-09 Thread Jeremy Jay
Or even simpler =) while dwm do sleep 1 done - Jeremy On Tue 09 Dec 2008 - 04:26PM, Evan Gates wrote: You can do while true do dwm || exit done This way when you kill dwm correctly (with modkey+shift+q as default) it respawns, but if you kill it any other way, the Xsession

Re: [dwm] dwm-5.3

2008-12-06 Thread Jeremy Jay
This was my hunch too, glad someone got it before me though. This patch fixes the problem with 5.3. Probably the same with the double- fork version too. Jeremy On Sat 06 Dec 2008 - 11:14PM, yamada yohei wrote: I reprodeced this problem with dwm-4.7 and also dwm 5.3.1. Neale's spawn() change

Re: [dwm] patch for colored status text

2008-12-06 Thread Jeremy Jay
OK I think it's added now, but the preview page isn't working. Jeremy On Sat 06 Dec 2008 - 08:50AM, Anselm R Garbe wrote: What about adding this patch to the wiki? Kind regards, Anselm 2008/12/4 Jeremy Jay [EMAIL PROTECTED]: Another simple patch for anyone interested. Changes the way

Re: [dwm] DWM 5.3.1 and Xinerama

2008-12-06 Thread Jeremy Jay
If you are using a recent version of xorg, and don't have your screen resolution hardcoded in xorg.conf, it should be autodetected. For example, the last time I had to do a presentation, I plugged in the projector, restarted X, and it auto-detected the right resolution to use. Jeremy On Sat 06

Re: [dwm] dwm-5.3

2008-12-05 Thread Jeremy Jay
I have the same problem, although my status feed setup is nearly identical to the one Neale shows. I use 'tail -f $XSTATUS | dwm' instead of 'dwm $XSTATUS' because for some reason dwm always showed EOF the other way. Anyways, my .xinitrc is simply 'exec dwm-launch' and dwm-launch does the fifo

Re: [dwm] a locked window for stalonetray - a different approach

2008-12-05 Thread Jeremy Jay
On Fri 05 Dec 2008 - 07:12AM, Marcin Cieslak wrote: The new flag means: do not allow to change tags, and do not display tag indicator. I don't know about you, but I don't try to change the tags for stalonetray very often. :) My patch also has the benefit of working with anything with all tags

[dwm] patch for colored status text

2008-12-04 Thread Jeremy Jay
Another simple patch for anyone interested. Changes the way colors are defined slighty, allowing you to create more color combinations. Then, to color the status text from stdin you can simply use the color combo # as follows: echo -e \x03 warning low battery -- will be printed with the third

Re: [dwm] patch to hide sticky indicators, and add nofocus windows

2008-11-25 Thread Jeremy Jay
Small bug-fix - cycling through visible windows was broken (in focusstack())... This is the cumulative patch, but the only differences from the last one are the few lines in focusstack() Jeremy diff -r f6c3491c41f1 config.def.h --- a/config.def.h Sun Nov 16 13:22:24 2008 + +++

[dwm] patch to hide sticky indicators, and add nofocus windows

2008-11-21 Thread Jeremy Jay
I do a lot of roaming, and long story short, nm-applet is nearly a requirement for me. No biggie, I just run it in stalonetray and set it to all tags, shoved up in the corner, only I've ran into two little issues: 1) sticky windows put an indicator on every tag in the bar. I know it's on