summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-06-15 02:58:13 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-06-15 02:58:13 +0200
commit4cfcbd3f435f114b8d29f1bf6d50a0378dd7c028 (patch)
tree92f5e27748cbe167707d8eb98c5cfd78c97c21c8 /templates
parent9786e03de9c14445769c4d04130f6512f16fbb9d (diff)
downloadplay-4cfcbd3f435f114b8d29f1bf6d50a0378dd7c028.tar.gz
play-4cfcbd3f435f114b8d29f1bf6d50a0378dd7c028.tar.bz2
play-4cfcbd3f435f114b8d29f1bf6d50a0378dd7c028.zip
added some games; added templates; added debug; moved functions to functions.sh
Diffstat (limited to 'templates')
-rw-r--r--templates/default39
-rw-r--r--templates/steam9
2 files changed, 48 insertions, 0 deletions
diff --git a/templates/default b/templates/default
new file mode 100644
index 0000000..4fd9c50
--- /dev/null
+++ b/templates/default
@@ -0,0 +1,39 @@
+# exporting variables
+EENV[WINEPREFIX]='eval echo $PREFIX'
+ENV[WINEDEBUG]="-all"
+ENV[DISPLAY]=":1"
+
+PREFIX="~/.wine"
+
+default_execute () {
+ exc -e startx $BIN -x $GAME -- :1 -ac -br -quiet ${=EXARGS}
+}
+
+default_prepare () {
+ nvidia-settings -l
+
+ # set display size
+ [[ -n $SIZE ]] && xrandr -s $SIZE
+}
+
+default_setenv () {
+ for e v in ${(kv)ENV}; do
+ exp $e $v
+ done
+
+ for e v in ${(kv)EENV}; do
+ exp $e `eval $v`
+ done
+}
+
+default_run () {
+ # start game
+ exc wine start $GPATH "$ARGS"
+
+ # wait for wine to shutdown
+ exc wineserver -w
+}
+
+EXPORT default execute prepare setenv run
+
+# vim:ft=sh
diff --git a/templates/steam b/templates/steam
new file mode 100644
index 0000000..321f646
--- /dev/null
+++ b/templates/steam
@@ -0,0 +1,9 @@
+PREFIX="~/.steam"
+SIZE="1280x1024"
+GPATH="c:/programme/steam/steam.exe"
+
+steamapp () {
+ [[ $# > 0 ]] && export ARGS="-applaunch ${=@}"
+}
+
+# vim:ft=sh