Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Openbox: List Steam Games filter_list
Author
Message
Openbox: List Steam Games #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]

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

Reply

RE: Openbox: List Steam Games #2
Neat. Gonna keep this thread bookmarked c:

Reply

RE: Openbox: List Steam Games #3
Thanks for this Vi, life saver bb
๖ۣۜDMX
X Gon' Give it to ya


Reply

RE: Openbox: List Steam Games #4
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)
Public Key & Bitcoin
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5

Reply

RE: Openbox: List Steam Games #5
(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.
Public Key & Bitcoin
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5

Reply

RE: Openbox: List Steam Games #6
(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
๖ۣۜDMX
X Gon' Give it to ya


Reply

RE: Openbox: List Steam Games #7
(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.
Public Key & Bitcoin
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5

Reply

RE: Openbox: List Steam Games #8
(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
๖ۣۜDMX
X Gon' Give it to ya


Reply

RE: Openbox: List Steam Games #9
(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.
Public Key & Bitcoin
Tox: B540063A92D12D13788EBBD72F5574422F311FBCC7112B74154491762C000354C8BF60024BC5

Reply







Users browsing this thread: 1 Guest(s)