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.
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 "$@" <
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
* 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/
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
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
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
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 '\\')
> \
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
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
[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
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
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
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
* 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
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
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
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
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
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
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
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
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 '\\'`
> \
>
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 '\\')
\\
24 matches
Mail list logo