|
@@ -1,17 +1,17 @@
|
|
|
#!/bin/bash
|
|
|
-echo "linux config v1.3 wareck@gmail.com"
|
|
|
+echo "linux config v2.1 wareck@gmail.com"
|
|
|
echo ""
|
|
|
PS3='Please enter your choice: '
|
|
|
-options=("NVIDIA-GTX" "NVIDIA-RTX" "AMD" "Quit")
|
|
|
+options=("NVIDIA-RTX" "NVIDIA-GTX" "AMD" "Quit")
|
|
|
select opt in "${options[@]}"
|
|
|
do
|
|
|
case $opt in
|
|
|
- "NVIDIA-GTX")
|
|
|
- Mode="NVIDIAGTX"
|
|
|
+ "NVIDIA-RTX")
|
|
|
+ Mode="NVIDIARTX"
|
|
|
break
|
|
|
;;
|
|
|
- "NVIDIA-RTX")
|
|
|
- Mode="NVIDIARTX"
|
|
|
+ "NVIDIA-GTX")
|
|
|
+ Mode="NVIDIAGTX"
|
|
|
break
|
|
|
;;
|
|
|
"AMD")
|
|
@@ -163,9 +163,37 @@ sudo mv wakeup_cube.sh /usr/local/bin
|
|
|
function liquidcontrol {
|
|
|
if [ $Mode = "NVIDIAGTX" ] || [ $Mode = "NVIDIARTX" ]
|
|
|
then
|
|
|
+pip3 install liquidctl
|
|
|
+fi
|
|
|
+if [ $Mode = "NVIDIAGTX" ]
|
|
|
+then
|
|
|
+cat <<'EOF'>> liquidcfg.service
|
|
|
+[Unit]
|
|
|
+Description=AIO startup service
|
|
|
+
|
|
|
+[Service]
|
|
|
+Type=oneshot
|
|
|
+ExecStart=liquidctl initialize --match "smart device"
|
|
|
+ExecStart=liquidctl --match "smart device" set sync speed 55
|
|
|
+ExecStart=liquidctl --match "smart" set fan1 speed 90
|
|
|
+ExecStart=liquidctl --match "smart" set fan2 speed 90
|
|
|
+ExecStart=liquidctl --match "smart" set fan3 speed 90
|
|
|
+ExecStart=liquidctl --match "smart" set led color fixed eb0869
|
|
|
+
|
|
|
+[Install]
|
|
|
+WantedBy=default.target
|
|
|
+EOF
|
|
|
+sudo cp liquidcfg.service /etc/systemd/system/
|
|
|
+rm liquidcfg.service
|
|
|
+sudo systemctl daemon-reload
|
|
|
+sudo systemctl start liquidcfg
|
|
|
+sudo systemctl enable liquidcfg
|
|
|
gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/wallpaperNvidia.jpg
|
|
|
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32
|
|
|
-sudo pip3 install liquidctl
|
|
|
+fi
|
|
|
+
|
|
|
+if [ $Mode = "NVIDIARTX" ]
|
|
|
+then
|
|
|
cat <<'EOF'>> liquidcfg.service
|
|
|
[Unit]
|
|
|
Description=AIO startup service
|
|
@@ -177,7 +205,7 @@ ExecStart=liquidctl --match "smart device" set sync speed 55
|
|
|
ExecStart=liquidctl --match "smart" set fan1 speed 90
|
|
|
ExecStart=liquidctl --match "smart" set fan2 speed 90
|
|
|
ExecStart=liquidctl --match "smart" set fan3 speed 90
|
|
|
-ExecStart=liquidctl --match "smart" set led color fixed eb0869
|
|
|
+ExecStart=liquidctl --match "smart" set led color fixed f32a9e
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=default.target
|
|
@@ -187,7 +215,11 @@ rm liquidcfg.service
|
|
|
sudo systemctl daemon-reload
|
|
|
sudo systemctl start liquidcfg
|
|
|
sudo systemctl enable liquidcfg
|
|
|
-else
|
|
|
+gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/875469.png
|
|
|
+gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32
|
|
|
+fi
|
|
|
+if [ $Mode = "AMD" ]
|
|
|
+then
|
|
|
gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/wallpaperAMD.jpg
|
|
|
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32
|
|
|
fi
|