Advertisement
NolanSyKinsley

Untitled

Apr 14th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. STEAMAPPS=~/.steam/steam/steamapps/
  4.  
  5. echo '<openbox_pipe_menu>'
  6. echo '<item label="Steam"><action name="Execute"><execute>steam</execute></action></item>'
  7. echo '<separator/>'
  8. cat $(ls $STEAMAPPS/*.acf -1v) | egrep '"name"|"appid"' | sed -r 's/"name"[\t ]+"([^"]+)"/<item label="\1">/' | sed -r 's/"appid"[\t ]+"([^"]+)"/<action name="Execute"><execute>steam steam steam:\/\/run\/\1<\/execute><\/action><\/item>/' | sed 'N;s/\n//' |sed 's/\t//g' | sort
  9. echo '</openbox_pipe_menu>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement