forked from RP1/RaveOS-arch
Update ros-progs-gui.sh
This commit is contained in:
parent
35d97e80b6
commit
fcd4f93640
1 changed files with 3 additions and 17 deletions
|
@ -7,22 +7,8 @@ yellow=$(tput setaf 3) # ${yellow}
|
||||||
|
|
||||||
# APT/Flatpak APP TELEPITO SCRIPT
|
# APT/Flatpak APP TELEPITO SCRIPT
|
||||||
|
|
||||||
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
||||||
|
|
||||||
# Entering work folder
|
# Entering work folder
|
||||||
cd /usr/local/bin/progs
|
cd /usr/local/bin/progs
|
||||||
echo "[User]
|
|
||||||
Session=
|
|
||||||
Icon=/usr/share/backgrounds/rave-pp.png
|
|
||||||
SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
|
||||||
|
|
||||||
# Adding ucode to boot entries - Credit Lordify
|
|
||||||
CPU=$(lscpu | grep "AMD" -c)
|
|
||||||
if [[ $CPU -gt 0 ]]; then
|
|
||||||
echo "initrd /amd-ucode.img" | sudo tee -a /boot/loader/entries/linux-zen.conf
|
|
||||||
else
|
|
||||||
echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/linux-zen.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Zenity ablak megjelenítése
|
# Zenity ablak megjelenítése
|
||||||
user_choice=$(zenity --list --checklist --width='1000' --height='1000' \
|
user_choice=$(zenity --list --checklist --width='1000' --height='1000' \
|
||||||
|
@ -680,7 +666,7 @@ if [[ $user_choice = *"Csak a FO Monitoron jelenjen meg a Login Screen - Tobb mo
|
||||||
echo ---------------------------------------------
|
echo ---------------------------------------------
|
||||||
echo Setting ${bold}${yellow}Only main monitor on login${normal}
|
echo Setting ${bold}${yellow}Only main monitor on login${normal}
|
||||||
|
|
||||||
zenity --warning --text='!! SWITCH TO PRIMARY MONITOR ONLY !!' --width='300' --height='100' 2>/dev/null
|
zenity --warning --text='!! SWITCH TO PRIMARY MONITOR ONLY !!' --width='300' --height='100'
|
||||||
sudo mkdir -p /var/lib/gdm/.config/
|
sudo mkdir -p /var/lib/gdm/.config/
|
||||||
sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/monitors.xml
|
sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/monitors.xml
|
||||||
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml
|
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml
|
||||||
|
@ -898,14 +884,14 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if [[ $user_choice = *"Windows 11 Telepítő - Csak Profiknak"* ]]; then
|
if [[ $user_choice = *"Windows 11 Telepítő - Csak Profiknak"* ]]; then
|
||||||
zenity --warning --text='!! MAJOM VAGY !!' --width='300' --height='100' 2>/dev/null
|
zenity --warning --text='!! MAJOM VAGY !!' --width='300' --height='100'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
||||||
sudo rm /etc/xdg/autostart/3progs.sh.desktop 2>/dev/null
|
sudo rm /etc/xdg/autostart/3progs.sh.desktop 2>/dev/null
|
||||||
|
|
||||||
zenity --question --title='Restart required!' --text='Restart in 5 seconds?' --width='300' --height='100' 2>/dev/null
|
zenity --question --title='Restart required!' --text='Restart in 5 seconds?' --width='300' --height='100'
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue