forked from sysdrum/amdgpu-simple-settings-tool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfanspeeddlg-promenu.temp
executable file
·46 lines (43 loc) · 1.02 KB
/
fanspeeddlg-promenu.temp
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
46
#!/bin/bash
HEIGHT=18
WIDTH=40
CHOICE_HEIGHT=8
BACKTITLE="AMD settings for fan speed"
TITLE="AMD GPU Fan Speed"
MENU="Please enter your choice:"
OPTIONS=(1 "Check GPU Temp"
2 "Check FAN Speed"
3 "Set 40"
4 "Set 60"
5 "Set 80"
6 "Set 100")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
sh -c 'textexchange/./amdgpu-pro-fans.sh -t'
sleep 5
;;
2)
sh -c 'textexchange/./amdgpu-pro-fans.sh -r'
sleep 5
;;
3)
sh -c 'textexchange/./amdgpu-pro-fans.sh -s 40'
;;
4)
sh -c 'textexchange/./amdgpu-pro-fans.sh -s 60'
;;
5)
sh -c 'textexchange/./amdgpu-pro-fans.sh -s 80'
;;
6)
sh -c 'textexchange/./amdgpu-pro-fans.sh -s 100'
;;
esac