You are not logged in.
hi I addressed some issues and some unique to me.
1) check if you are loading VLC or a file with VLC (so launch VLC or VLC $1)
...This may or may not be useful but I post anyway in case it is...
#!/bin/bash # ... #Turn off monitor modes that will power down, standby or blank the screen #Disable modes /usr/bin/xset -dpms & /usr/bin/xset s off & #Open VLC if [ -n "$1" ] then /usr/bin/vlc "$1" else /usr/bin/vlc fi #Re-enable modes /usr/bin/xset dpms /usr/bin/xset s on exit
Why still test for "$1"? If you had listened carefully to jac, you would have used "$@" by now, which expands to all the arguments given to vlc.
That is: no arguments if no arguments given or "$1 $2 $3 ..." if you pass them to your wrapper script.
Offline