Sinisterly
Openbox: List Steam Games - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Computers (https://sinister.ly/Forum-Computers)
+--- Forum: Operating Systems (https://sinister.ly/Forum-Operating-Systems)
+--- Thread: Openbox: List Steam Games (/Thread-Openbox-List-Steam-Games--66261)



Openbox: List Steam Games - Viomi_mybb_import13610 - 02-05-2016

This is a bash script for Openbox that lists all of your installed steam games in your little openbox window thing.

[Image: 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.


RE: Openbox: List Steam Games - Lain - 02-05-2016

Neat. Gonna keep this thread bookmarked c:


RE: Openbox: List Steam Games - Alpha_mybb_import13563 - 02-05-2016

Thanks for this Vi, life saver bb


RE: Openbox: List Steam Games - Viomi_mybb_import13610 - 02-05-2016

No problem!

I'm glad this is useful to some of you. I'll be uploading some similar scripts in the future (I'm an openbox minimalist nerd)


RE: Openbox: List Steam Games - Viomi_mybb_import13610 - 02-05-2016

(02-05-2016, 11:39 PM)Guest Wrote: You should try to mod your own linux distro, its fun

I have before.

For a long time I was the owner of #v! (crunchvbang), an offshoot of #! (crunchbang). It basically came with vlc and some other, more minimal programs than what #! came with. As well as scripts (such as the one in the OP) to make things easier and cleaner, and my custom openbox theme.


RE: Openbox: List Steam Games - Alpha_mybb_import13563 - 02-05-2016

(02-05-2016, 11:54 PM)Viomi Wrote:
(02-05-2016, 11:39 PM)Guest Wrote: You should try to mod your own linux distro, its fun

I have before.

For a long time I was the owner of #v! (crunchvbang), an offshoot of #! (crunchbang). It basically came with vlc and some other, more minimal programs than what #! came with. As well as scripts (such as the one in the OP) to make things easier and cleaner, and my custom openbox theme.

Vi what the bloody fuck is a CrunchBang


RE: Openbox: List Steam Games - Viomi_mybb_import13610 - 02-06-2016

(02-05-2016, 11:56 PM)Alpha Wrote:
(02-05-2016, 11:54 PM)Viomi Wrote: I have before.

For a long time I was the owner of #v! (crunchvbang), an offshoot of #! (crunchbang). It basically came with vlc and some other, more minimal programs than what #! came with. As well as scripts (such as the one in the OP) to make things easier and cleaner, and my custom openbox theme.

Vi what the bloody fuck is a CrunchBang

It's a linux distro that's now dead (sadly), however it has been resurrected by bunsenlabs.

It's based off debian jessie and uses openbox for it's desktop manager. Very clean and easy to install.


RE: Openbox: List Steam Games - Alpha_mybb_import13563 - 02-06-2016

(02-06-2016, 12:00 AM)Viomi Wrote:
(02-05-2016, 11:56 PM)Alpha Wrote: Vi what the bloody fuck is a CrunchBang

It's a linux distro that's now dead (sadly), however it has been resurrected by bunsenlabs.

It's based off debian jessie and uses openbox for it's desktop manager. Very clean and easy to install.

Oh, Cool, I understand non of that but thnks anywau Smile


RE: Openbox: List Steam Games - Viomi_mybb_import13610 - 02-22-2016

(02-06-2016, 12:03 AM)SiriusBlack Wrote:
(02-06-2016, 12:01 AM)Alpha Wrote: Oh, Cool, I understand non of that but thnks anywau Smile

its good, sadly the better shits are for windows Sad

I'm not really sure what you're referring to.

Valve is moving all of their games and their systems over to linux because Windows is screwing gaming over in their newer OSes
Open source and KISS thinking is becoming popular and understood
People are beginning to value the customization of linux distros

To be honest, I have trouble using windows more than linux because all of the things I want to use work better on linux.