Re: [wmii] Re: issue with personnal wmiirc file

From: Julien Pecqueur (JPEC) <jpec_AT_julienpecqueur.com>
Date: Wed, 14 Jan 2009 08:10:33 +0100
Thomas Gallen wrote:
I believe what he intended was to escape the backtick (`). I believe a
single backtick before a bracketed command is an rc escape (as in shell
escape) to run a command. Kinda like bash's `` and $().

What Kris's command does is write the line "exec `{wi_script}" to the
file "rc.wmii.local" so that it executes wmiirc (the shell equivalent of
the rc script rc.wmii/rc.wmii.local). This way, even if 9base is
installed and tries to run the rc script instead, the local rc script
then calls the shell script wmiirc.

Just escape the backtick:

[foo@bar ~]$ cat << EOF > .wmii-hg/rc.wmii.local
  
exec \`{wi_script wmiirc}
EOF
    

Thomas

On Mon, Jan 12, 2009 at 10:37:39PM +0100, Julien Pecqueur (JPEC) wrote:
  
Kris Maglione wrote:
    
On Mon, Jan 12, 2009 at 09:16:13PM +0100, Julien Pecqueur (JPEC) wrote:
      
In the console i've probably found a way : i can see a message like >>>  
/usr/bin/wmii9rc : found rc but not read - you probably have an out of  
date 9base installed.
        
If you have 9base installed, wmii runs rc.wmii instead of wmiirc. Just do,

cat <<EOF >.wmii-hg/rc.wmii.local
exec `{wi_script wmiirc}
EOF
chmod +x .wmii-hg/rc.wmii.local

      
Are you sure of the ` before {wi_script wmiirc}??

Result of the command :
[jpec@WindU100X ~]$ cat <<EOF >.wmii-hg/rc.wmii.local
    
exec `{wi_script wmiirc}
EOF
      
bash: bad substitution: no closing "`" in `{wi_script wmiirc}

So i add a "`" at the end...

But mokeys are not yet modified :'(

    

  

i found what is wrong! i have to modify on the rc.wmii file and remove the wmiirc local file ! now i can modify modkey, color, term, statusbar...
thank everybody for the help!
thank you the developper for that great piece of software!

here my newbie's status bar : http://julienpecqueur.com/uploads/scrot_2009-01-13_23-24_1024x600.png :-P 
Received on Wed Jan 14 2009 - 07:10:33 UTC

This archive was generated by hypermail 2.2.0 : Wed Jan 14 2009 - 07:12:06 UTC