summaryrefslogtreecommitdiff
path: root/templates/steam
diff options
context:
space:
mode:
Diffstat (limited to 'templates/steam')
-rw-r--r--templates/steam28
1 files changed, 22 insertions, 6 deletions
diff --git a/templates/steam b/templates/steam
index 3321e92..2516277 100644
--- a/templates/steam
+++ b/templates/steam
@@ -1,9 +1,25 @@
-PREFIX="steam"
-SIZE="1280x960"
-GPATH="c:/program files/steam/steam.exe"
+if loaded wine; then
+ PREFIX="steam"
+ #SIZE="1280x960"
+ GPATH="c:/program files/steam/steam.exe"
-steamapp () {
- [[ $# > 0 ]] && export ARGS="-applaunch ${=@}"
-}
+ steamapp () {
+ [[ $# -gt 0 ]] && export ARGS="-applaunch ${=@}"
+ }
+else
+ GPATH=steam
+ SIZE=1680x1050
+
+ steamapp () {
+ [[ $# -gt 0 ]] && export ARGS="steam://rungameid/$1"
+ }
+
+ # force cleanup -- yields a normal shutdown
+ steam_cleanup () {
+ [[ $1 == force ]] && exc steam -shutdown
+ }
+
+ OVERRIDE cleanup
+fi
# vim:ft=sh