[dwm] autostart

2008-09-08 Thread bill lam
I use slim to start dwm or other wm. I want to know to autostart a particular script for dwn only. Thanks in advance. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

Re: [dwm] autostart

2008-09-08 Thread bill lam
On Mon, 08 Sep 2008, =?ISO-8859-1?Q?Richard_P=F6ttler_ wrote: On Mon, Sep 8, 2008 at 11:30 AM, bill lam [EMAIL PROTECTED] wrote: On Mon, 08 Sep 2008, =?ISO-8859-1?Q?Richard_P=F6ttler_ wrote: On Mon, Sep 8, 2008 at 10:44 AM, bill lam [EMAIL PROTECTED] wrote: I use slim to start dwm

Re: [dwm] (solved) autostart

2008-09-08 Thread bill lam
On Mon, 08 Sep 2008, Giorgio Lando wrote: On lun 08/09/08, 17:30, bill lam wrote: Did you use slim login manager? 1. slim does not need ~/.xinitrc 2. how to ensure the script is only run for dwn session but not other wm? Put it in the other way, does dwm have any autostart script

Re: [dwm] autostart

2008-09-08 Thread bill lam
On Mon, 08 Sep 2008, =?ISO-8859-1?Q?Richard_P=F6ttler_ wrote: On Mon, Sep 8, 2008 at 10:44 AM, bill lam [EMAIL PROTECTED] wrote: I use slim to start dwm or other wm. I want to know to autostart a particular script for dwn only. Thanks in advance. Just place the command in front

[dwm] keyboard input focus

2008-09-08 Thread bill lam
I found that mouse click can switch current client (as shown in the top statusbar), but the keyboard input focus does not get switched. Is this bug? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys

[dwm] Re: keyboard input focus

2008-09-08 Thread bill lam
On Tue, 09 Sep 2008, bill lam wrote: I found that mouse click can switch current client (as shown in the top statusbar), but the keyboard input focus does not get switched. Is this bug? To be concise, the behaviour is random, sometimes it works. -- regards

Re: [dwm] Re: keyboard input focus

2008-09-09 Thread bill lam
On Tue, 09 Sep 2008, Anselm R Garbe wrote: Which terminal are you using? I remember that I noticed such behavior back in the times when I used urxvt, however I switched to uxterm long ago which seems to work properly. And since st will be the official terminal for dwm in the future, I hope

[dwm] newbie question: floating vs tiled layout

2008-09-09 Thread bill lam
What is the significance of tiled vs floating as that shown in the icon on the statusbar for []= ? I'm puzzled because 1. each tag can have different layout yet the icon is common to all tags. 2. take firefox as an example, the window can be dragged or resized (turned in floating) but the

[dwm] xterm -e [dmenu]

2008-09-10 Thread bill lam
Hi All, I want to exec some console program, so instead of exec directly the output from dmenu, I change it to something like, xterm -e outuot from dmenu I modified config.h and dwm.c as follows. However I noticed that it spawn a xterm before dmenu has started. Is there any way to suppress

Re: [dwm] xterm -e [dmenu]

2008-09-10 Thread bill lam
On Wed, 10 Sep 2008, Anselm R Garbe wrote: No need to that natively. Have a look into dmenu_run which should give you an idea how to write dmenu_termrun ;) Thank you very much for advice! Yes, that should be *the* way to do it. -- regards,

Re: [dwm] dwm + xft

2008-09-11 Thread bill lam
On Thu, 11 Sep 2008, Donald Chai wrote: I tried adding pango+xft support because bitmap CJK fonts suck, and also Sorry for my ignorance. The chinese font on my FF3 now looks ugly while it previously looks quite good using ukai under gnome. Does this patch fix all related font issue for programs

Re: [dwm] dwm + xft

2008-09-11 Thread bill lam
On Thu, 11 Sep 2008, Donald Chai wrote: bug. By looks ugly do you mean it's rendered with a different font, or that the font is improperly rendered? look like 15x16 character printed on an old dot-matrix printer. I've checked with rxvt-unicode and FF2 (Iceweasel), and everything looks

Re: [dwm] dwm + xft

2008-09-12 Thread bill lam
On Thu, 11 Sep 2008, Donald Chai wrote: Just specify multiple font patterns in config.h, separated by commas: static const char font[] = -*-fixed-medium-r-normal-*-12-*-*-*-*-*- *-*,-*-ukai-*-r-normal--*-*-*-*-*-* ; Thanks. It works now. Incidentally the original terminus font does not

[dwm] modkey as dead key

2008-09-16 Thread bill lam
Hello, How to set modkey (I use mod4key) to work as a dead key for dwm? Repeated pressing key chord already causes RSI to my wrist. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

[dwm] classname of java

2008-09-23 Thread bill lam
Hello, I want to set java programs to float in config.h, Does anyone know what the classname of sun java/openjdk java as that reported by XGetClassHint? TIA -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net

Re: [dwm] classname of java

2008-09-23 Thread bill lam
On Tue, 23 Sep 2008, Donald Chai wrote: You can get classnames (and other useful information) using the 'xprop' program. Thank you Donald! BTW, I solved the firefox ukai font problem by disable hinting/autohint for chinese fonts in ~/.fonts.conf. -- regards,

Re: [dwm] move/resize keyboard control

2008-09-28 Thread bill lam
On Sat, 27 Sep 2008, Donald Chai wrote: On Sep 27, 2008, at 5:26 AM, Tinou wrote: awesomewm (and my dwm) move windows within the clients list instead of turning on 'floating', and I very much prefer it that way. Interesting feature, could you send a patch ? This patch is against dwm-5.2.

Re: [dwm] move/resize keyboard control

2008-09-28 Thread bill lam
On Sun, 28 Sep 2008, Donald Chai wrote: I find it strange how many people use dwm mostly for monocle-mode. I used Ratpoison for years because I assumed that any alternative would require that I install gkrellm, turn on fake transparency in my I use a 15 LCD, tile is not practical and I use

Re: [dwm] Notifications

2008-09-30 Thread bill lam
On Mon, 29 Sep 2008, Carlos Pita wrote: How about using dzen[1]? I didn't know about it, thanks for the advice. I've wrote a simple bash script that takes care of wrapping long lines and dynamically adjust the notification window width according to the longest line and the current font

Re: [dwm] [Offtopic] minimalistic filesystem ncurses viewer

2008-12-26 Thread bill lam
On Sat, 27 Dec 2008, Ricardo Catalinas Jiménez wrote: Merry Christmas for everyone. I just wanted to say I've been using dwm for a while and I like the suckless philosophy, so I wrote a simple filesystem viewer for myself to complement my desktop. I tried before vifm and others but they

Re: [dwm] [Offtopic] minimalistic filesystem ncurses viewer

2008-12-27 Thread bill lam
On Sat, 27 Dec 2008, Ricardo Catalinas Jiménez wrote: On Sat, 27 Dec 2008 08:44:14 +0100, bill lam cbill@gmail.com wrote: Even compiling with ncursew, fm does not display utf8 properly, is it a known issue? I missed completely the call to `setlocale' at the beginning of the program

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread bill lam
Hi, I tried and it worked very well except that it cannot handle utf8 wide characters. When text was copied, it became garbage characters as content peeked from dclip_cache. Even I manually put some valid utf8 text into that file. On m-c-v, garbage appeared on the menu bar, or inserted with

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-29 Thread bill lam
On Mon, 29 Dec 2008, Delta wrote: I usually use ISO-8859-15 character encoding on my system. I have tried with UTF-8 and also there was no problem, so let me try to delimit the problem: Can you see your selection OK in the ~/.dclip_cache file after the M+C+c? No. it became ? Do you see

Re: [dwm] [dclip] dmenu-based clipboard manager

2008-12-30 Thread bill lam
On further testing, it appeared that the xclip itself cannot handle utf8. On replacing xclip with xsel, it now works without problem. What problem did you encounter in using xsel? I prefer \034 to \266 as delimiter, since the later is a 2 byte sequence in utf8 encoding. I'm not sure if tr can

Re: [dwm] last.fm + youtube downloader scripts

2009-01-05 Thread bill lam
On Mon, 05 Jan 2009, Ian Daniher wrote: music. youtubedl I am currently working on binding to a hotkey in w3m to allow near-seamless viewing of youtube videos from a command line browser. I also use w3m and interested in how to do download and view youtube. As pointed out, there are only

Re: [dwm] last.fm + youtube downloader scripts

2009-01-05 Thread bill lam
How to configure w3m to use this youtube-dl ? That is not mentioned in README. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩253 崔顥 長干行二首之一 君家何處住 妾住在橫塘 停船暫借問 或恐是同鄉

[dwm] how to float all gui programs

2009-01-09 Thread bill lam
At present I float common gui programs that I used into config.h like static Rule rules[] = { /* class instancetitle tags mask isfloating */ { Abiword, NULL, NULL, 0,True }, { Acroread, NULL, NULL, 0,

Re: [dwm] how to float all gui programs

2009-01-09 Thread bill lam
On Fri, 09 Jan 2009, markus schnalke wrote: [2009-01-09 22:35] bill lam cbill@gmail.com I need to compile each time I add anthor gui program. Is there any way to automatically float all gui program? Make floating the default and add rules for your terminal emulators. ... however

Re: [dwm] dmenu filename tab-completion patch

2009-01-27 Thread bill lam
It is very useful! Can it be extended to handle tabtab ? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩196 劉長卿 長沙過賈誼宅 三年謫宦此棲遲 萬古惟留楚客悲 秋草獨尋人去後 寒林空見日斜時 漢文有道恩猶薄 湘水無情弔豈知 寂寂江山搖落處

Re: [dwm] dmenu filename tab-completion patch

2009-01-28 Thread bill lam
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 another request. bash completion will list all available choices for tabtab in one step. Will

Re: [dwm] [ANNOUNCE] dvtm-0.5

2009-01-29 Thread bill lam
On Thu, 29 Jan 2009, Donald Chai wrote: You can replace that line with: ESCDELAY = esc_delay; Thanks! I found 2 further issues 1. on my ubuntu, $TERM is xterm (actually it is 256 color), but dvtm cannot detect it and makes it a 8 (or 16?) color rxvt. 2. if start dvtm from dmenu

Re: [dwm] [ANNOUNCE] dvtm-0.5

2009-01-30 Thread bill lam
On Fri, 30 Jan 2009, Donald Chai wrote: On Jan 29, 2009, at 8:54 PM, bill lam wrote: On Thu, 29 Jan 2009, Donald Chai wrote: You can replace that line with: ESCDELAY = esc_delay; Thanks! I found 2 further issues 1. on my ubuntu, $TERM is xterm (actually it is 256 color), but dvtm

Re: [dwm] [ANNOUNCE] dvtm-0.5

2009-01-30 Thread bill lam
The color test is ok. I found that it was vim that misinterpret the color, By coerce term to xterm, it's ok now. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩217 李商隱 無題二首之一 鳳尾香羅薄幾重

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

2009-02-03 Thread bill lam
On Thu, 29 Jan 2009, Donald Chai wrote: On Jan 29, 2009, at 12:49 AM, bill lam wrote: In commit sha1 a107d3 it added a call to an undeclared set_escdelay, and it fails to compile. Is that a known issue? You can replace that line with: ESCDELAY = esc_delay; By default, ncurses

Re: [dwm] [ANNOUNCE] dvtm-0.5

2009-02-03 Thread bill lam
On Tue, 03 Feb 2009, Marc Andre Tanner wrote: This should now be fixed in current git HEAD. I will probably release dvtm-0.5.1 next weekend. Thanks for the report. I you have time, will you also test the screen redraw problem. When I use vim to edit two files and scroll up and down, it did not

Re: [dwm] [ANNOUNCE] dvtm-0.5

2009-02-06 Thread bill lam
On Fri, 06 Feb 2009, Marc Andre Tanner wrote: Thanks for the additional information. Unfortunately i am still unable to reproduce the problem. Does this happen for you with every file or only with some specific ones? Does anybody else see something similar? I compiled and tested again and

[dwm] displaydate patch for dwm 5.4

2009-02-08 Thread bill lam
The original displaydate patch no longers work for dwm 5.4. I hacked it and create a new displaydate patch. Please comment if there is any issue. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys

[dwm] Re: displaydate patch for dwm 5.4

2009-02-09 Thread bill lam
On Mon, 09 Feb 2009, bill lam wrote: while(running !XNextEvent(dpy, ev)) { + { + time_t t; + + t = time(NULL); + strftime(stext, sizeof stext - 1, %a %e %b, %I:%M%p, localtime(t)); + /* Depending

Re: [dwm] Making it a million and one

2009-02-16 Thread bill lam
@@ die(fatal: could not malloc() %u bytes\n, sizeof(Client)); *c = cz; c-win = w; + c-isfloating = True;/* bill lam: change default to float */ /* geometry */ c-x = wa-x; -- regards

Re: [dwm] Suckess Code Management

2009-03-12 Thread bill lam
User-Agent: Mutt/1.5.18 (2008-05-17) [...] Sent from my Nokia mobile phone What mua did you use? FWIW, I use mutt. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩218 李商隱 無題二首之二

Re: OT: Re: [dwm] Suckess Code Management

2009-03-12 Thread bill lam
On Thu, 12 Mar 2009, Jimmy Tang wrote: really its just mutt, i just changed my sig. to say what it says now, so i can get away with writing short and terse emails to people (sucks to waste time on writing long detailed emails) its a trick i picked up from kevin rose of digg.com fame. --

[dwm] what is mwm hint?

2009-03-15 Thread bill lam
When I try turn on full screen in feh (an image viewer). It said feh WARNING: Window Manager does not support MWM hints. To get a borderless window I have to bypass your wm. What is mwm hint? Is that important? dwm-5.5 -- regards, GPG key

[dwm] splash screen

2009-03-16 Thread bill lam
If I open xls files with command $gnumeric some-large-file.xls gnumeric will load a splash screen (looks like fixed size). Then splash screen disappeared and the main window loaded. Apparent dwm thought that the main screen was also a dialog and make it float. Is that the intended behavior?

Re: [dwm] splash screen

2009-03-16 Thread bill lam
On Mon, 16 Mar 2009, mi...@milesgroman.com wrote: Can you reply with your rule for gnumeric? I occasionally use gnumeric, though I do not recall a splash, it does tile as expected. static Rule rules[] = { /* class instancetitle tags mask isfloating */ {

Re: [dwm] autoconf

2009-03-19 Thread bill lam
On Thu, 19 Mar 2009, Szabolcs Nagy wrote: hm probably (c) would be better there (and in the license) (c) is not legalese, but spelling the whole word copyright and that c inside circle symbol are. ianal -- regards, GPG key 1024D/4434BAB3

Re: [dwm] File browser window pop-up in web browser

2009-03-26 Thread bill lam
On Fri, 27 Mar 2009, Jeremy Cartel wrote: I'm currently using the latest stable version of Mozilla Firefox. However, whenever I click on a button that requires browsing files, such as uploading photos from my computer on an image hosting site, or in the Firefox Preferences of where I choose to

Re: [dwm] Gvim size problem

2009-04-15 Thread bill lam
Similar experience in the past but seem fixed now. I guess it should be a gvim problem. You may test by comparing with other gtk based text editors such as geany or gedit. It should be `lines' not set correctly. try :set lines? for gvim, lines depends on both gfn and window height. --

Re: [SOLVED] [dwm] Gvim size problem

2009-04-16 Thread bill lam
On Thu, 16 Apr 2009, Dusan wrote: On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) Preben Randhol rand...@pvv.org wrote: Does not help :( may try adding: set lines=200 Similar experience in the past but seem fixed now. I guess it should be a gvim problem. You may test by comparing with

Re: [SOLVED] [dwm] Gvim size problem

2009-04-17 Thread bill lam
On Fri, 17 Apr 2009, Dusan wrote: Thanks, tried this too. Does not work either. Can you attach your .vimrc / .gvimrc please? I do not use .gvimrc, relevant portion of .vimrc if has(gui_running) this line must after gfn and inside gui_running set lines=200 columns=124 right and bottom

Re: [SOLVED] [dwm] Gvim size problem

2009-04-17 Thread bill lam
On Fri, 17 Apr 2009, Dusan wrote: On Fri, 17 Apr 2009 12:57:53 +0200 (CEST) Preben Randhol rand...@pvv.org wrote: Here it is. Gvim is on the left -- there is huge vertical stripe on the right part of it. When I do float-unfloat gvim takes whole area and works well after that. I use

Re: [dwm] dwm's future

2009-04-25 Thread bill lam
On Sat, 25 Apr 2009, Christian Garbs wrote: On Sat, Apr 25, 2009 at 09:37:56PM +0200, yy wrote: I don't think nobody needs unicode glyphs in their tag names or tile symbols, you wouldn't need cairo in dwm I'm still using dwm-4.7 (because I did not yet have time to port all patches to

Re: [dwm] dwm's future

2009-04-26 Thread bill lam
On Sun, 26 Apr 2009, Haomin Wen wrote: Hello, I am sorry but I really hope dwm can switch to using pango. X fonts are broken and not well supported, at least in Ubuntu. I have six Chinese fonts shown in xlsfonts, but only two of them can be displayed. Two of them only support 16 pixel and

Re: [dwm] dwm's future

2009-04-26 Thread bill lam
On Sun, 26 Apr 2009, Haomin Wen wrote: I do not care antialias or hinting if there are bitmap fonts, but they are necessary when using some truetype fonts. I use dmenu to show how fonts are broken. https://www.getdropbox.com/gallery/957017/1/dwm?h=fb5e6b Thanks, I follow you example by echo

Re: [dwm] skvm - suckless lightweight volume manager

2009-05-03 Thread bill lam
On Sun, 03 May 2009, Leandro Chescotta wrote: yes, i dont know how to mount as user instead of root with skvm too, i think a sudo umount /dev/sdX[n] with be ok, but i really like the devices to be mounted as my user I only use one dvd drive and use one usb at a time. I use pmount but I think

Re: [dwm] skvm - suckless lightweight volume manager

2009-05-04 Thread bill lam
On Sun, 03 May 2009, Leandro Chescotta wrote: http://github.com/dimigon/skvm/tree/master Well, by far im lovin' it, I started the daemon and pluged in a usb drive and i now have the drive mounted in /media with the name gived by /dev/sdX[n] device name, the thing is that i dont know how to

[dwm] [OT] frequency scaling and power consumption

2009-05-08 Thread bill lam
BIOS support choosing a smaller multipliers to reduce cpu frequency. linux also supports frequency scaling such powernowd. Some google page said cpu throttling can not reduce power consumption. My experience is that it seems to lower temperature. If it can also reduce power consumption, I'm

Re: [dwm] [OT] frequency scaling and power consumption

2009-05-08 Thread bill lam
Personally I have noticed that locking my laptops scaling CPU to the lowest frequency does give quite a noticeable improvement to the battery life, around an extra hour on top of the usual 4~ hours and reduces the temperature enough to make the fan shut off . Just enabling on-demand scaling