Skip to content

Commit

Permalink
Add quake ad-hoc script
Browse files Browse the repository at this point in the history
  • Loading branch information
seirl committed Aug 17, 2020
1 parent 18657b0 commit 2a9c491
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ansible/adhoc/quake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

QUAKE_SCRIPT=$( cat <<EOF
/usr/bin/zenity --question \
--text='Voulez-vous jouer à Quake ?' --icon-name input-gaming \
--title 'Sondage Prologin' --ok-label Oui --cancel-label Non \
&& openarena
EOF
)

ansible user -m shell -a "/usr/bin/xrun /usr/bin/bash -c \"$QUAKE_SCRIPT\""

0 comments on commit 2a9c491

Please sign in to comment.