Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- STEAMAPPS=~/.steam/steam/steamapps/
- echo '<openbox_pipe_menu>'
- echo '<item label="Steam"><action name="Execute"><execute>steam</execute></action></item>'
- echo '<separator/>'
- 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
- echo '</openbox_pipe_menu>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement