Re: [dev] [wmii] 3.9a1 hangs without p9p (same with 3.9a2)

From: Michal <ml_AT_infosec.pl>
Date: Sun, 04 Oct 2009 22:38:19 +0000

Kris Maglione wrote:
> Is ~/.wmii/wmiirc the wmiirc from the alpha? If so, is the first wmii.sh
> in your path from the alpha? If it is, look for a line that starts with
> #cho and replace the hash with an e, then attach the output of wmiirc to
> a reply.

Yes, my ~/.wmii/wmiirc (and /usr/local/etc/wmii/wmiirc) comes from
alpha2 and it is not modified by me. The same is true with wmii.sh

Replaced #cho with echo in wmii.sh as you asked.
Sorry but I'm not really sure what do you mean by output of wmiirc. If
it goes to xsession-errors then look at attached file.
Trying each of below commands on terminal gives me no output whatsoever:
/bin/sh /home/michu/.wmii/wmiirc
/bin/sh -f /home/michu/.wmii/wmiir
/bin/tcsh /home/michu/.wmii/wmiirc
/bin/tcsh -c /home/michu/.wmii/wmiir

When I run "sh -f /usr/local/bin/wmii.sh" then I get:
"/usr/local/bin/wmii.rc: cannot create [2]/dev/null: No such file or
directory
exit: Illegal number: write"

When I log in and load wmii then there is a lot in .xsession-errors now
(see attached file).
Also changed my shell from tcsh to sh and get the same results.

Thank you for your interest.
Michal

     1 Events='Start
     2 Key
     3 '
     4 Event() {
     5 event=$1; shift
     6 case $event in
     7 'Start')
     8 if [ "$1" = "$wmiiscript" ]; then
     9 exit
    10 fi;;
    11 'Key')
    12 Key "$@"
    13 # Events
    14 Event CreateTag
    15 echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
    16 Event DestroyTag
    17 wmiir remove "/lbar/$@"
    18 Event FocusTag
    19 wmiir xwrite "/lbar/$@" "$WMII_FOCUSCOLORS" "$@"
    20 Event UnfocusTag
    21 wmiir xwrite "/lbar/$@" "$WMII_NORMCOLORS" "$@"
    22 Event UrgentTag
    23 shift
    24 wmiir xwrite "/lbar/$@" "*$@"
    25 Event NotUrgentTag
    26 shift
    27 wmiir xwrite "/lbar/$@" "$@"
    28 Event LeftBarClick LeftBarDND
    29 shift
    30 wmiir xwrite /ctl view "$@"
    31 Event Unresponsive
    32 {
    33 client=$1; shift
    34 msg="The following client is not responding. What would you like to do?$wi_nl"
    35 resp=$(wihack -transient $client xmessage -nearmouse -buttons Kill,Wait -print "$msg $(wmiir read /client/sel/label)")
    36 if [ "$resp" = Kill ]; then
    37 wmiir xwrite /client/$client/ctl slay &
    38 fi
    39 }&
    40 Event Notice
    41 wmiir xwrite $noticebar $wi_arg
    42 kill $xpid 2>/dev/null # Let's hope this isn't reused...
    43 { sleep $noticetimeout; wmiir xwrite $noticebar ' '; }&
    44 xpid = $!
    45 Menu Client-3-Delete
    46 wmiir xwrite /client/$1/ctl kill
    47 Menu Client-3-Kill
    48 wmiir xwrite /client/$1/ctl slay
    49 Menu Client-3-Fullscreen
    50 wmiir xwrite /client/$1/ctl Fullscreen on
    51 Event ClientMouseDown
    52 wi_fnmenu Client $2 $1 &
    53 Menu LBar-3-Delete
    54 tag=$1; clients=$(wmiir read "/tag/$tag/index" | awk '/[^#]/{print $2}')
    55 for c in $clients; do
    56 if [ "$tag" = "$(wmiir read /client/$c/tags)" ]; then
    57 wmiir xwrite /client/$c/ctl kill
    58 else
    59 wmiir xwrite /client/$c/tags -$tag
    60 fi
    61 if [ "$tag" = "$(wi_seltag)" ]; then
    62 newtag=$(wi_tags | awk -v't='$tag '
    63 $1 == t { if(!l) getline l
    64 print l
    65 exit }
    66 { l = $0 }')
    67 wmiir xwrite /ctl view $newtag
    68 fi
    69 done
    70 Event LeftBarMouseDown
    71 wi_fnmenu LBar "$@" &
    72 # Actions
    73 Action quit
    74 wmiir xwrite /ctl quit
    75 Action exec
    76 wmiir xwrite /ctl exec "$@"
    77 Action rehash
    78 proglist $PATH >$progsfile
    79 Action status
    80 set +xv
    81 if wmiir remove /rbar/status 2>/dev/null; then
    82 sleep 2
    83 fi
    84 echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
    85 while status | wmiir write /rbar/status; do
    86 sleep 1
    87 done
    88 # Key Bindings
    89 Key $MODKEY-Control-t
    90 case $(wmiir read /keys | wc -l | tr -d ' \t\n') in
    91 0|1)
    92 echo -n "$Keys" | wmiir write /keys
    93 wmiir xwrite /ctl grabmod $MODKEY;;
    94 *)
    95 wmiir xwrite /keys $MODKEY-Control-t
    96 wmiir xwrite /ctl grabmod Mod3;;
    97 esac
    98 Key $MODKEY-space
    99 wmiir xwrite /tag/sel/ctl select toggle
   100 Key $MODKEY-d
   101 wmiir xwrite /tag/sel/ctl colmode sel default-max
   102 Key $MODKEY-s
   103 wmiir xwrite /tag/sel/ctl colmode sel stack-max
   104 Key $MODKEY-m
   105 wmiir xwrite /tag/sel/ctl colmode sel stack+max
   106 Key $MODKEY-a
   107 action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
   108 Key $MODKEY-p
   109 eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
   110 Key $MODKEY-t
   111 (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /ctl view $tag) &
   112 Key $MODKEY-Return
   113 eval wmiir setsid $WMII_TERM &
   114 Key $MODKEY-Shift-space
   115 wmiir xwrite /tag/sel/ctl send sel toggle
   116 Key $MODKEY-f
   117 wmiir xwrite /client/sel/ctl Fullscreen toggle
   118 Key $MODKEY-Shift-c
   119 wmiir xwrite /client/sel/ctl kill
   120 Key $MODKEY-Shift-t
   121 c=$(wi_selclient)
   122 (tag=$(wi_tags | wimenu -h "${hist}.tags" -n 50) && wmiir xwrite /client/$c/tags $tag) &
   123 Key $MODKEY-$LEFT
   124 wmiir xwrite /tag/sel/ctl select left
   125 Key $MODKEY-$RIGHT
   126 wmiir xwrite /tag/sel/ctl select right
   127 Key $MODKEY-$DOWN
   128 wmiir xwrite /tag/sel/ctl select down
   129 Key $MODKEY-$UP
   130 wmiir xwrite /tag/sel/ctl select up
   131 Key $MODKEY-Control-$DOWN
   132 wmiir xwrite /tag/sel/ctl select down stack
   133 Key $MODKEY-Control-$UP
   134 wmiir xwrite /tag/sel/ctl select up stack
   135 Key $MODKEY-Shift-$LEFT
   136 wmiir xwrite /tag/sel/ctl send sel left
   137 Key $MODKEY-Shift-$RIGHT
   138 wmiir xwrite /tag/sel/ctl send sel right
   139 Key $MODKEY-Shift-$DOWN
   140 wmiir xwrite /tag/sel/ctl send sel down
   141 Key $MODKEY-Shift-$UP
   142 wmiir xwrite /tag/sel/ctl send sel up
   143 Key Mod1-0
   144 wmiir xwrite /ctl view "0"
   145 Key Mod1-Shift-0
   146 wmiir xwrite /client/sel/tags "0"
   147 Key Mod1-1
   148 wmiir xwrite /ctl view "1"
   149 Key Mod1-Shift-1
   150 wmiir xwrite /client/sel/tags "1"
   151 Key Mod1-2
   152 wmiir xwrite /ctl view "2"
   153 Key Mod1-Shift-2
   154 wmiir xwrite /client/sel/tags "2"
   155 Key Mod1-3
   156 wmiir xwrite /ctl view "3"
   157 Key Mod1-Shift-3
   158 wmiir xwrite /client/sel/tags "3"
   159 Key Mod1-4
   160 wmiir xwrite /ctl view "4"
   161 Key Mod1-Shift-4
   162 wmiir xwrite /client/sel/tags "4"
   163 Key Mod1-5
   164 wmiir xwrite /ctl view "5"
   165 Key Mod1-Shift-5
   166 wmiir xwrite /client/sel/tags "5"
   167 Key Mod1-6
   168 wmiir xwrite /ctl view "6"
   169 Key Mod1-Shift-6
   170 wmiir xwrite /client/sel/tags "6"
   171 Key Mod1-7
   172 wmiir xwrite /ctl view "7"
   173 Key Mod1-Shift-7
   174 wmiir xwrite /client/sel/tags "7"
   175 Key Mod1-8
   176 wmiir xwrite /ctl view "8"
   177 Key Mod1-Shift-8
   178 wmiir xwrite /client/sel/tags "8"
   179 Key Mod1-9
   180 wmiir xwrite /ctl view "9"
   181 Key Mod1-Shift-9
   182 wmiir xwrite /client/sel/tags "9";;
   183
   184 *) return 1
   185 esac
   186 }
Action: not found
Received on Sun Oct 04 2009 - 22:38:19 UTC

This archive was generated by hypermail 2.2.0 : Sun Oct 04 2009 - 21:48:02 UTC