Re: [dwm] dmenu directory test
On 6/14/08, James Turner [EMAIL PROTECTED] wrote: Doesn't it make more sense to do a test, then just redirect error output? Then you'd have to test more than your patch does: right now, your patch only tests if we're dealing with a directory; whether or not the user running the script has permission to cd into that directory is not taken in consideration. I agree with the others here that the cd itself is the safest test.
Re: [dwm] Need a small image resize program
Szabolcs Nagy [EMAIL PROTECTED] wrote: On 6/14/08, markus schnalke [EMAIL PROTECTED] wrote: gd is _not_ a small lib but even tough much smaller than ImageMagick. also gd only does very simple resampling (!= image resize) I'm not an expert, but gd provides image resize and image resample and the quality of the second one is better. You're probably right, that the algorithms that are used are not the best ones, but they are okay for what I need them. As I told: If someone needs high quality resizing, he should use ImageMagick. imlib2 of enlightment (mentioned earlier) is smaller, faster with nicer code (at least the simple scaling part) Did I mention, that I work with Debian systems. At least there imlib2 is _not_ smaller than libgd2. (Okay it has more features.) Also imlib2 has more dependencies, under which is x11-common that has just nothing to do with image resizing. (actually i'd rather use imagemagick than a hack on top of gd) The first needs 80 megabytes (!) of dependencies to download on a fresh base system installation. The second one around 10 megabytes (not messured). imlib2 is somewhere in between, but I dont know where. You are probably right about the speed and code quality of imlib2 and I'll have a look into it. But from my point of view, it seems that gd does a better job for what I want: resize images (with sufficent quality) and have small size and dependencies. anyway: thanks for you arguing! meillo signature.asc Description: Digital signature
Re: [dwm] dmenu directory test
On Sun, Jun 15, 2008 at 11:39:38AM +0200, Sander van Dijk wrote: On 6/14/08, James Turner [EMAIL PROTECTED] wrote: Doesn't it make more sense to do a test, then just redirect error output? Then you'd have to test more than your patch does: right now, your patch only tests if we're dealing with a directory; whether or not the user running the script has permission to cd into that directory is not taken in consideration. I agree with the others here that the cd itself is the safest test. Thanks for the info guys. I see your point, I suppose cd is the best test. -- James Turner BSD Group Consulting http://www.bsdgroup.org
[dwm] Current tagging/static Rule options?
I switched to dwm from wmx about 6 months ago and have been fairly happy with the stock functionality of 4.7. The more recent versions including 5.0 have different tagging/static Rule options and I'm wondering what those options are WRT directing certain applications to specific tags, ex. all PDF views to the pdf tag; putting xclock on all tags. I saw the post about regexs in class going away but I couldn't find anything explaining for example what 1 8 implies in the static Rule rules. Maybe a few more examples could be added to config.h, or some customizing documentation added to the wiki? Cheers, Jeff