[dev] macos settings to use wmii in X11

2011-07-24 Thread Jhonny Boy
Hello I just install wmii under macos X using macport. (I know it is quite an old version 3.1). I don't know how to configure it. I tried to write différente things in ~/.xinitrc. But I cannot manage la launch X11 in fullscreen using wmii as a window manager.

Re: [dev] Re: [dmenu] dmenu_run improvements

2011-07-24 Thread Josh Rickmar
lolilolicon wrote: > On Sun, Jul 24, 2011 at 10:30 PM, lolilolicon wrote: > > On Sun, Jul 24, 2011 at 10:08 PM, Christian Neukirchen > > wrote: > >> anonymous writes: > >> > >>> On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: > > unset IFS > > > > cmd=$(dmenu "$@" <

Re: [dev] Re: [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 10:30 PM, lolilolicon wrote: > On Sun, Jul 24, 2011 at 10:08 PM, Christian Neukirchen > wrote: >> anonymous writes: >> >>> On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: > unset IFS > > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" Yea

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Szabolcs Nagy
* Dave Reisner [2011-07-24 10:09:58 -0400]: > http://pubs.opengroup.org/onlinepubs/95399/utilities/test.html > this is the third time today that i see link to the old posix specs you may want to update your bookmarks to the newer one http://pubs.opengroup.org/onlinepubs/9699919799/

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 10:09 PM, Dave Reisner wrote: > On Sun, Jul 24, 2011 at 10:00:09PM +0800, lolilolicon wrote: >> Sorry, but can you give an example where `test -nt' is not available? >> Or can you point out what do you refer to to determine the portability >> of a shell script? > > I usuall

Re: [dev] Re: [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 10:08 PM, Christian Neukirchen wrote: > anonymous writes: > >> On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: >>> > unset IFS >>> > >>> > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" >>> Yeah, I see you just hate backticks :P >>> >> >> There is a differen

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Dave Reisner
On Sun, Jul 24, 2011 at 10:00:09PM +0800, lolilolicon wrote: > On Sun, Jul 24, 2011 at 9:09 PM, Connor Lane Smith wrote: > > On 24 July 2011 06:34, Dave Reisner wrote: > >> if [ "$path" -nt "$CACHE" ]; then > > > > 'test -nt' is non-portable. I think you've just discovered why we use > > the 'ls

[dev] Re: [dmenu] dmenu_run improvements

2011-07-24 Thread Christian Neukirchen
anonymous writes: > On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: >> > unset IFS >> > >> > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" >> Yeah, I see you just hate backticks :P >> > > There is a difference: > > % echo `echo '\\'` > \ > % echo $(echo '\\') > \

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 9:09 PM, Connor Lane Smith wrote: > On 24 July 2011 06:34, Dave Reisner wrote: >> if [ "$path" -nt "$CACHE" ]; then > > 'test -nt' is non-portable. I think you've just discovered why we use > the 'ls -dt' hack. > > I agree that dmenu_run isn't the nicest script in existenc

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Dave Reisner
On Sun, Jul 24, 2011 at 02:09:54PM +0100, Connor Lane Smith wrote: > On 24 July 2011 06:34, Dave Reisner wrote: > > if [ "$path" -nt "$CACHE" ]; then > > 'test -nt' is non-portable. I think you've just discovered why we use > the 'ls -dt' hack. Hrmmph, so it is... the doc I had on hand lied to m

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread markus schnalke
[2011-07-24 14:09] Connor Lane Smith > On 24 July 2011 06:34, Dave Reisner wrote: > > if [ "$path" -nt "$CACHE" ]; then > > 'test -nt' is non-portable. I think you've just discovered why we use > the 'ls -dt' hack. The right time to add a comment, so we won't need to rediscover it again. meil

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Connor Lane Smith
On 24 July 2011 06:34, Dave Reisner wrote: > if [ "$path" -nt "$CACHE" ]; then 'test -nt' is non-portable. I think you've just discovered why we use the 'ls -dt' hack. I agree that dmenu_run isn't the nicest script in existence. But because of the tedious limitations of POSIX we don't have much

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 6:41 PM, lolilolicon wrote: > cmd=`dmenu "$@" < "$CACHE"` && eval exec "$cmd" > > NOTE: > The (subshell) is used so the declarations won't get inherented, but > the user still has access to the $CACHE and $cmd environments. > Hmm, maybe instead of `eval exec', we could jus

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 5:06 PM, Anselm R Garbe wrote: > Nevertheless, I can see that script should be improved (not using the > ls -dt invocation), but I prefer the back ticks (even if $(..) is > POSIX, there were a couple of issues in the past that I barely > remember) and I want explicit test c

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Szabolcs Nagy
* Anselm R Garbe [2011-07-24 09:40:12 +0100]: > On 24 July 2011 08:38, anonymous wrote: > > > > There is a difference: > > > >    % echo `echo '\\'` > >    \ > >    % echo $(echo '\\') > >    \\ > > Yes, but bash'isms are a NO GO in suckless.org shell scripts :) > $(cmd) is not bashism anymore

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Anselm R Garbe
On 24 July 2011 10:06, Anselm R Garbe wrote: > On 24 July 2011 09:57, lolilolicon wrote: >> On Sun, Jul 24, 2011 at 4:39 PM, Anselm R Garbe wrote: >>> On 24 July 2011 06:34, Dave Reisner wrote: #!/bin/sh CACHE=${XDG_CACHE_HOME:-"$HOME/.cache"}/dmenu_run IFS=: LC_COLLLAT

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Anselm R Garbe
On 24 July 2011 09:57, lolilolicon wrote: > On Sun, Jul 24, 2011 at 4:39 PM, Anselm R Garbe wrote: >> On 24 July 2011 06:34, Dave Reisner wrote: >>> #!/bin/sh >>> >>> CACHE=${XDG_CACHE_HOME:-"$HOME/.cache"}/dmenu_run >>> IFS=: >>> LC_COLLLATE=C >>> >>> gencache() { >>>  lsx $PATH | sort -u >"$CA

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 4:39 PM, Anselm R Garbe wrote: > On 24 July 2011 06:34, Dave Reisner wrote: >> On Sun, Jul 24, 2011 at 12:35:19PM +0800, lolilolicon wrote: >>> dmenu_run doesn't really run the user input as a shell command line. >>> For instance, run dmenu_run from a terminal, then in the

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On Sun, Jul 24, 2011 at 4:40 PM, Anselm R Garbe wrote: > On 24 July 2011 08:38, anonymous wrote: >> On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: >>> > unset IFS >>> > >>> > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" >>> Yeah, I see you just hate backticks :P >>> >> >> There

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Anselm R Garbe
On 24 July 2011 08:38, anonymous wrote: > On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: >> > unset IFS >> > >> > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" >> Yeah, I see you just hate backticks :P >> > > There is a difference: > >    % echo `echo '\\'` >    \ >    % echo $(ec

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Anselm R Garbe
On 24 July 2011 06:34, Dave Reisner wrote: > On Sun, Jul 24, 2011 at 12:35:19PM +0800, lolilolicon wrote: >> dmenu_run doesn't really run the user input as a shell command line. >> For instance, run dmenu_run from a terminal, then in the menu type: >> >>   echo hello\ world >> >> The terminal outp

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread Florian Ermisch
The only problem: When /bin/sh is really just Bourne the kornish $(...) won't work, i.e. on Solaris and probably the BSDs - if it's not actually some kind of ksh. And on some Linux systems it's dash and not bash... Regards, Florian Am 24.07.2011 10:13 schrieb "lolilolicon" : > On 07/24/11 at 11:38

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread lolilolicon
On 07/24/11 at 11:38am, anonymous wrote: > On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: > > > unset IFS > > > > > > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" > > Yeah, I see you just hate backticks :P > > > > There is a difference: > > % echo `echo '\\'` > \ >

Re: [dev] [dmenu] dmenu_run improvements

2011-07-24 Thread anonymous
On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: > > unset IFS > > > > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" > Yeah, I see you just hate backticks :P > There is a difference: % echo `echo '\\'` \ % echo $(echo '\\') \\