daily pastebin goal
92%
SHARE
TWEET

roch

a guest Feb 13th, 2018 63 in 22 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if [ $# -ge 1 ]; then
  2.         game="$(which $1)"
  3.         openbox="$(which openbox)"
  4.         tmpgame="/tmp/tmpgame.sh"
  5.         DISPLAY=:1.0
  6.         echo -e "${openbox} &\n${game}" > ${tmpgame}
  7.         echo "starting ${game}"
  8.     xinit ${tmpgame} && $(xauth add  :1 . $(mcookie)) && $(nvidia-settings --load-config-only) -- :1 -xf86config game.conf || exit 1
  9. else
  10.         echo "not a valid argument"
  11. fi
RAW Paste Data
Top