Openbox: List Steam Games 02-05-2016, 04:47 AM
#1
This is a bash script for Openbox that lists all of your installed steam games in your little openbox window thing.
![[Image: CJx6EeN.png]](http://i.imgur.com/CJx6EeN.png)
Pretty straightforward if I do say so myself.
![[Image: CJx6EeN.png]](http://i.imgur.com/CJx6EeN.png)
Code:
#This script is a generally used Openbox pipe menu to list all currently installed steam games as well as launch them.
#To install:
#Put this script in ~./config/openbox/scripts/steam.sh (or elsewhere if you want to edit the below <menu>)
#Add the below line to menu.xml (without the comment of course)
#<menu execute="~/.config/openbox/scripts/steam.sh" id="steam" label="Steam"/>
#!/bin/bash
STEAMAPPS=~/.local/share/Steam/steamapps
echo '<openbox_pipe_menu>'
echo '<item label="Launch Steam"><action name="Execute"><execute>steam</execute></action></item>'
echo '<separator/>'
for file in $STEAMAPPS/*.acf ; do
ID=$(grep '"appid"' "$file" | head -1 | awk -F\" '{print $4}')
NAME=$(grep '"name"' "$file" | head -1 | awk -F\" '{print $4}')
echo "<item label=\"$NAME\"><action name=\"Execute\"><execute>steam -applaunch $ID</execute></action></item>"
done
echo '</openbox_pipe_menu>'
Pretty straightforward if I do say so myself.
Public Key & Bitcoin
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5