aboutsummaryrefslogtreecommitdiff
path: root/examples/mint_auto_start_example.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mint_auto_start_example.sh')
-rwxr-xr-xexamples/mint_auto_start_example.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/mint_auto_start_example.sh b/examples/mint_auto_start_example.sh
new file mode 100755
index 0000000..9482659
--- /dev/null
+++ b/examples/mint_auto_start_example.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+# starting this script on login will wait for Nemo to initialize
+# and start xwinwrap with mplayer on desktop surface and play /path/to/your/video
+
+until $(echo xwininfo -name Desktop)|grep "IsViewable"; do :; done
+xwinwrap -b -s -fs -fdt -d "Desktop" -- mplayer -wid WID --loop=0 --nosound /path/to/your/video