Re: [dev] wmii - key events are not read unless they are repeated

2011-05-12 Thread Ben Smith
> the event handler code seemed to be pausing on the line: > > line = "$(echo $line | sed 's/^[^ ]* //' | tr -d '\n')" > > Simply commenting it out fixed the problem, what is this lines purpose? > The problem was with the whitespace on either side of the '=', I'm still not sure if this command is

Re: [dev] wmii - key events are not read unless they are repeated

2011-05-08 Thread Ben Smith
I have got it to work, not sure why though... the event handler code seemed to be pausing on the line: line = "$(echo $line | sed 's/^[^ ]* //' | tr -d '\n')" Simply commenting it out fixed the problem, what is this lines purpose? And should it be fixed in the User Guide? I really should learn s

Re: [dev] wmii - key events are not read unless they are repeated

2011-05-08 Thread Ben Smith
> Interesting, I suppose you could try omitting the daemonizing logic: > > Mod4-p) ls / | wimenu ;; > Still the same behaviour I think it is something to do with splitting the event line up into parts... I put an echo at the start of the while loop that reads each event line: # Open /event for

Re: [dev] wmii - key events are not read unless they are repeated

2011-05-08 Thread Ben Smith
> You should be aware that this user guide describes the setup of a wmiirc > from scratch. If you just want to customize the existing one, you can do so > by using a ~/.wmii/wmiirc_local (the recommended, but not overly well > documented way) or by copying /etc/wmii/wmiirc (or wherever yours is) to

Re: [dev] wmii - key events are not read unless they are repeated

2011-05-08 Thread Ben Smith
> > # Run program > Mod4-p) > wmiir setsid "ls / | wimenu -s 0" > ;; > With this code the menu is not displayed at all and I get a message... wmiir: fatal: setsid: can't exec: No such file or directory If I add "eval exec" to the line it works after two presses Mod4-p) ev

Re: [dev] wmii - key events are not read unless they are repeated

2011-05-08 Thread Ben Smith
Thanks for the quick reply, but I still can't seem to get it to work When I do the changes as you say, and after pressing Mod4-p twice it just lists proglist_cache. So I add the '$' sign eval exec wmiir setsid "$(echo $proglist_cache | wimenu -s 0)" & And it still requires Mod4-p to be pressed

[dev] wmii - key events are not read unless they are repeated

2011-05-07 Thread Ben Smith
ite /tag/sel/ctl select left ;; # Run program Mod4-p) eval exec wmiir setsid "$(proglist $PATH | wimenu -s 0)" & ;; Mod4-[0-9]) wmiir xwrite /ctl view ${1##*-} ;; esac ;; # Tag menu events LeftBarMouseDown)# LeftBarMouseDown [ $1 = 3 ] && clickmenu \ "Delete:delete_view $2" esac done -- Regards, Ben Smith