-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootopt.sh
45 lines (43 loc) · 1.15 KB
/
bootopt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
# Thanks to KenT for contributions
RET=0
SOUND=$(zenity --list --width=350 --height=250 --radiolist \
--title="Choose the Audio Output" \
--column "Select" --column="Output" TRUE "Leave as is" FALSE "Auto" FALSE "Force Headphones" FALSE "Force HDMI" )
RET=$?
echo $SOUND
if [ "$SOUND" = "Leave as is" ]; then
echo "Leave as is"
elif [ "$SOUND" = "Auto" ]; then
amixer -c 0 cset numid=3 0
echo "Auto set"
elif [ "$SOUND" = "Force Headphones" ]; then
amixer -c 0 cset numid=3 1
echo "Headphones set"
elif [ "$SOUND" = "Force HDMI" ]; then
amixer -c 0 cset numid=3 2
echo "HDMI set"
else
echo "cancel"
fi
while [ $RET -eq 0 ]; do
GAME=$(zenity --width=350 --height=700 --list \
--title="ArtSystem Launcher" \
--text="Created By ArtGames101" \
--column="Script name" --column="Description" \
Boot-Options "Run Boot Option Module" \
Website "The ArtSystem Website")
RET=$?
echo $RET
if [ "$RET" -eq 0 ]
then
if [ "$GAME" = "website" ]
then
sensible-browser "http://artsystem.webstarts.com"
else
if [ "$GAME" != "" ]; then
python3 bootopt.py
fi
fi
fi
done