> 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 reading wmiir read /event | # Read the events line by line while read line; do echo reading line from event: $line # Split the line into words, store in $@ set -- $line event=$1; shift line = "$(echo $line | sed 's/^[^ ]* //' | tr -d '\n')" And the output after one press of Mod4-p is: reading line from event: Key Mod4-p and then after a second press the menu is displayed and the following is displayed: Key Mod4-p I don't even know where this second echo is coming from, hmm...