move common settings

This commit is contained in:
Librewish 2020-10-03 21:20:23 +05:30
parent 0178aa3b3e
commit 1b887056d0
19 changed files with 619 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Shutdown" --class shutdown {
echo "System shutting down..."
halt
}
menuentry "Restart" --class restart {
echo "System rebooting..."
reboot
}
if [ ${grub_platform} == "efi" ]; then
menuentry "Firmware Setup (UEFI)" --class recovery {
fwsetup
}
fi

View File

@ -0,0 +1 @@
export GTK3_MODULES="${GTK3_MODULES:-}${GTK3_MODULES:+:}canberra-gtk-module"

2
etc/profile.d/mangohud.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
export MANGOHUD=1

View File

@ -0,0 +1 @@
export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1

2
etc/profile.d/vkbasalt.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
export ENABLE_VKBASALT=1

View File

@ -0,0 +1,102 @@
#!/bin/bash
function goto
{
label=$1
cmd=$(sed -n "/^:[[:blank:]][[:blank:]]*${label}/{:a;n;p;ba};" $0 |
grep -v ':$')
eval "$cmd"
exit
}
clear
echo "Welcome to the initial setup assistant!"
: start
echo "What do you want to do?"
echo ""
echo "Lite & Ultimate:"
echo "1) Get initial mirrorlist & download list of packages"
echo "2) Update the system"
echo "3) Debloat the system"
echo "4) Enable Adblocking / HiDPI mode / Guest user"
echo "5) Disable Samba, printing & scanner support"
echo ""
echo "Lite only:"
echo "6) Fix missing characters by installing full noto-fonts packages"
echo "7) Enable Snap & Flatpak support"
echo "8) Install gaming dependencies, Lutris & Steam"
echo "9) Upgrade to Ultimate (excluding desktop-specific apps)"
echo ""
echo "10) Exit & delete this assistant"
echo ""
read selection
if [ $selection = "1" ]; then
echo ""
echo "Select options in Reflector Simple!"
reflector-simple >/dev/null 2>&1
sudo pacman -Syy
echo ""
goto "start"
elif [ $selection = "2" ]; then
echo ""
sudo pacman -Syu
echo ""
echo "System upgraded."
echo ""
goto "start"
elif [ $selection = "3" ]; then
echo ""
echo "Follow the short tutorial!"
echo "Make sure to inspect that removed packages first"
firefox --new-window https://wiki.garudalinux.org/en/removing-bloat >/dev/null 2>&1 &
pamac-manager >/dev/null 2>&1
goto "start"
elif [ $selection = "4" ]; then
echo ""
echo "Find it in the settings tab."
garuda-welcome >/dev/null 2>&1
echo ""
goto "start"
elif [ $selection = "5" ]; then
echo ""
echo "Find it in the settings tab."
garuda-welcome >/dev/null 2>&1
echo ""
goto "start"
elif [ $selection = "6" ]; then
echo ""
sudo pacman -Syu --noconfirm noto-fonts-extra noto-fonts-cjk
echo ""
echo "Extra fonts should be installed now."
goto "start"
elif [ $selection = "7" ]; then
echo ""
sudo pacman -R --noconfirm pamac-aur pamac-tray-appindicator
sudo pacman -Syu --noconfirm snapd snapd-glib apparmor flatpak pamac-all
sudo systemctl enable --now snapd
sudo systemctl enable --now apparmor
sudo systemctl enable --now snapd.apparmor
echo ""
echo "Snap & Flatpak support should now be enabled."
goto "start"
elif [ $selection = "8" ]; then
echo ""
sudo pacman -Syu --noconfirm gamemode lib32-gamemode lutris garuda-wine steam steam-native-runtime mangohud proton-tkg-git dxvk-mingw-git
systemctl --user enable --now gamemoded
echo ""
echo "All gaming should now be installed."
goto "start"
elif [ $selection = "9" ]; then
echo ""
sudo sh ~/.config/autostart-scripts/upgrade-to-ultimate.sh
echo ""
goto "start"
elif [ $selection = "10" ]; then
rm -r ~/.config/autostart-scripts/setup-assistant.sh
echo "Script deleted."
exit
else echo "Thats not a valid choice!"
goto "start"
fi

View File

@ -0,0 +1,21 @@
#!/bin/sh
systemctl --user enable gamemoded &
systemctl --user start gamemoded &
systemctl --user enable pulseaudio-bluetooth-autoconnect &
systemctl --user start pulseaudio-bluetooth-autoconnect &
systemctl --user enable android-session-manager&
systemctl --user start android-session-manager&
libinput-gestures-setup autostart &
libinput-gestures-setup start &
alacritty -e "${HOME}/.config/autostart-scripts/setup-assistant.sh"
rm -rf "${HOME}/.config/autostart-scripts/setup.sh" &
notify-send "Setup complete!"
setup_dxvk install &
exit

View File

@ -0,0 +1,264 @@
#!/bin/bash
set -e
echo "###############################################################################"
echo "#### WELCOME TO THE GARUDA LINUX ULTIMATE UPDATE SCRIPT V1.0 ####"
echo "###############################################################################"
## Graphical
sudo pacman -S --needed pamac-all
sudo pacman -S --noconfirm --needed discover-snap
## APPIMAGE Support
sudo pacman -S --noconfirm --needed appimagelauncher
## FIRMWARE UPDATES
sudo pacman -S --noconfirm --needed fwupd
## Snap Support
sudo pacman -S --noconfirm --needed apparmor
sudo pacman -S --noconfirm --needed snapd
sudo pacman -S --noconfirm --needed snapd-glib
## Flatpak support
sudo pacman -S --noconfirm --needed flatpak
## PACKAGEKIT SUPPORT
sudo pacman -S --noconfirm --needed packagekit-qt5
echo "###############################################################################"
echo "#### INSTALLED PACKAGE MANAGEMENT ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed garuda-alsa
sudo pacman -S --noconfirm --needed garuda-pulse
sudo pacman -S --noconfirm --needed garuda-pipewire
sudo pacman -S --noconfirm --needed pulseaudio-ctl
sudo pacman -S --noconfirm --needed playerctl
echo "###############################################################################"
echo " INSTALLED AUDIO ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed qomui-git
echo "###############################################################################"
echo "#### INSTALLED NETWORK ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed garuda-settings-samba
sudo pacman -S --noconfirm --needed system-config-samba # python2 package
## printing
sudo pacman -S --noconfirm --needed garuda-printer
sudo pacman -S --noconfirm --needed system-config-printer
sudo pacman -S --noconfirm --needed python-pysmbc
sudo pacman -S --noconfirm --needed splix
sudo pacman -S --noconfirm --needed hplip
sudo pacman -S --noconfirm --needed python-pyqt5
sudo pacman -S --noconfirm --needed python-reportlab
## scanning
sudo pacman -S --noconfirm --needed garuda-scanner
sudo pacman -S --noconfirm --needed skanlite
echo "###############################################################################"
echo "#### INSTALLED PRINTER ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed evdev-right-click-emulation
echo "###############################################################################"
echo "#### INSTALLED INPUT ####"
echo "###############################################################################"
## Desktop Utils
sudo pacman -S --noconfirm --needed xdg-desktop-portal
sudo pacman -S --noconfirm --needed xdg-desktop-portal-kde
sudo pacman -S --noconfirm --needed wmctrl
sudo pacman -S --noconfirm --needed numlockx
sudo pacman -S --noconfirm --needed xbindkeys
sudo pacman -S --noconfirm --needed xcape
sudo pacman -S --noconfirm --needed xdotool
sudo pacman -S --noconfirm --needed xautolock
sudo pacman -S --noconfirm --needed libdvdcss
sudo pacman -S --noconfirm --needed powertop
sudo pacman -S --noconfirm --needed htop
sudo pacman -S --noconfirm --needed libva-utils
sudo pacman -S --noconfirm --needed vdpauinfo
sudo pacman -S --noconfirm --needed vulkan-tools
sudo pacman -S --noconfirm --needed mesa-demos
sudo pacman -S --noconfirm --needed lib32-mesa-demos
echo "###############################################################################"
echo "#### INSTALLED UTILITIES ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed noto-fonts-cjk # asian fonts - needed big package, ~76 mb compressed
sudo pacman -S --noconfirm --needed noto-fonts-extra
sudo pacman -S --noconfirm --needed ttf-opensans
echo "###############################################################################"
echo "#### INSTALLED FONTS ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed mediaelch
sudo pacman -S --noconfirm --needed qytdl
sudo pacman -S --noconfirm --needed obs-studio
sudo pacman -S --noconfirm --needed pdfmixtool
sudo pacman -S --noconfirm --needed guiscrcpy
sudo pacman -S --noconfirm --needed nitroshare
sudo pacman -S --noconfirm --needed soundkonverter
sudo pacman -S --noconfirm --needed mystiq
sudo pacman -S --noconfirm --needed converseen
## office
sudo pacman -S --noconfirm --needed libreoffice-fresh
sudo pacman -S --noconfirm --needed libmythes
## Internet applications
sudo pacman -S --noconfirm --needed telegram-desktop
sudo pacman -S --noconfirm --needed signal-desktop
sudo pacman -S --noconfirm --needed streamlink-twitch-gui
sudo pacman -S --noconfirm --needed discord
sudo pacman -S --noconfirm --needed mumble
sudo pacman -S --noconfirm --needed murmur
## amd vulkan
sudo pacman -S --noconfirm --needed amdvlk
sudo pacman -S --noconfirm --needed lib32-amdvlk
echo "###############################################################################"
echo "#### INSTALLED OTHER APPS ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed garuda-virt-manager
echo "###############################################################################"
echo "#### INSTALLED VIRTUALIZATION ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed garuda-wine
echo "###############################################################################"
echo "#### INSTALLED WINE ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed steam
sudo pacman -S --noconfirm --needed steam-native-runtime
sudo pacman -S --noconfirm --needed lutris
sudo pacman -S --noconfirm --needed gamehub
sudo pacman -S --noconfirm --needed itch
sudo pacman -S --noconfirm --needed minigalaxy
sudo pacman -S --noconfirm --needed legendary
sudo pacman -S --noconfirm --needed ialauncher-git
sudo pacman -S --noconfirm --needed gamerworld
sudo pacman -S --noconfirm --needed athenaeum-git
sudo pacman -S --noconfirm --needed python-numpy
sudo pacman -S --noconfirm --needed moonlight-qt
sudo pacman -S --noconfirm --needed pegasus-frontend-git
sudo pacman -S --noconfirm --needed steam-tweaks
sudo pacman -S --noconfirm --needed linux-steam-integration
echo "###############################################################################"
echo "#### INSTALLED GAME LAUNCHERS ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed openrgb-git
sudo pacman -S --noconfirm --needed piper
sudo pacman -S --noconfirm --needed fancontrol-gui-git
sudo pacman -S --noconfirm --needed corectrl
sudo pacman -S --noconfirm --needed gwe
sudo pacman -S --noconfirm --needed goverlay-git
sudo pacman -S --noconfirm --needed mangohud
sudo pacman -S --noconfirm --needed lib32-mangohud
sudo pacman -S --noconfirm --needed gamemode
sudo pacman -S --noconfirm --needed lib32-gamemode
sudo pacman -S --noconfirm --needed vkbasalt
sudo pacman -S --noconfirm --needed ntfix-git
sudo pacman -S --noconfirm --needed q4wine
sudo pacman -S --noconfirm --needed fuseiso
sudo pacman -S --noconfirm --needed openh264
sudo pacman -S --noconfirm --needed dxvk-mingw-git
sudo pacman -S --noconfirm --needed proton-tkg-git
echo "###############################################################################"
echo "#### INSTALLED GAMING TOOLS ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed antimicrox
sudo pacman -S --noconfirm --needed linuxconsole
sudo pacman -S --noconfirm --needed xboxdrv
sudo pacman -S --noconfirm --needed xpadneo-dkms-git
sudo pacman -S --noconfirm --needed steamos-xpad-dkms
sudo pacman -S --noconfirm --needed xow-git
sudo pacman -S --noconfirm --needed xbox-generic-controller
sudo pacman -S --noconfirm --needed game-devices-udev
sudo pacman -S --noconfirm --needed retroarch-autoconfig-udev-git
echo "###############################################################################"
echo "#### INSTALLED GAME CONTROLLER ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed libretro
sudo pacman -S --noconfirm --needed emulationstation
sudo pacman -S --noconfirm --needed ppsspp
sudo pacman -S --noconfirm --needed pcsxr
sudo pacman -S --needed pcsx2-git
sudo pacman -S --noconfirm --needed rpcs3-git
sudo pacman -S --noconfirm --needed yuzu-mainline-git
sudo pacman -S --noconfirm --needed scummvm-tools
sudo pacman -S --noconfirm --needed scummvm
sudo pacman -S --noconfirm --needed dosbox
echo "###############################################################################"
echo "#### INSTALLED EMULATORS ####"
echo "###############################################################################"
sudo pacman -S --noconfirm --needed aisleriot
sudo pacman -S --noconfirm --needed knights
sudo pacman -S --noconfirm --needed kmahjongg
sudo pacman -S --noconfirm --needed gnuchess
sudo pacman -S --noconfirm --needed mari0
sudo pacman -S --noconfirm --needed minetest
sudo pacman -S --noconfirm --needed minetest-server
sudo pacman -S --noconfirm --needed teeworlds
sudo pacman -S --noconfirm --needed puzzles
sudo pacman -S --noconfirm --needed texlive-games
sudo pacman -S --noconfirm --needed kde-games-meta
echo "###############################################################################"
echo "#### INSTALLED GAMES ####"
echo "###############################################################################"
sync

View File

@ -0,0 +1,20 @@
[Desktop Entry]
Categories=System;Monitor;
Comment=
Comment=
Exec=conky --daemonize --pause=1
GenericName=
GenericName=
Icon=conky-logomark-violet
MimeType=
Name=conky
Name=conky
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

View File

@ -0,0 +1,36 @@
[Desktop Entry]
Encoding=UTF-8
Name=Garuda Welcome
Name[ca]=Garuda Welcome
Name[cs]=Garuda Vítejte
Name[de]=Garuda Willkommen
Name[el]=Garuda Welcome
Name[es]=Garuda Bienvenida
Name[fr]=Garuda Bienvenue
Name[it]=Garuda Benvenuto
Name[ja]=Garuda Welcome
Name[lt]=Garuda Pasveikinimas
Name[nl]=Garuda Welkom
Name[pt]=Garuda_Boas-vindas do Garuda
Name[ru]=Garuda Приветствие
Name[sv]=Garuda Välkommen
Comment=Display welcome message
Comment[ca]=Mostra un missatge de benvinguda
Comment[cs]=Zobrazuje uvítací obrazovku
Comment[de]=Willkommensgruß anzeigen
Comment[el]=Εμφάνιση μήνυμα καλωσορίσματος
Comment[es]=Muestra un mensaje de bienvenida
Comment[fr]=Afficher un message de bienvenue
Comment[it]=Visualizza un messaggio di benvenuto
Comment[ja]=Welcome メッセージの表示
Comment[lt]=Rodyti pasisveikinimo pranešimą
Comment[nl]=Laat welkomstbericht zien
Comment[pt]=Mostra uma messagem de boas-vindas
Comment[ru]=Показ приветственного сообщения
Comment[sv]=Visa välkomstmeddelande
Exec=garuda-welcome
Terminal=false
Type=Application
Icon=garuda-welcome
Categories=GNOME;GTK;System;Garuda-Setup;
NoDisplay=false

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Terminal=false
Name=Libinput Gestures
Exec=/usr/bin/libinput-gestures
Icon=libinput-gestures
Comment=Background application to intercept and action libinput gestures from touchpad.
Categories=GNOME;GTK;System;

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Exec=ksnip
Icon=ksnip
Terminal=false
StartupNotify=false
Name=ksnip
GenericName=ksnip Screenshot Tool
Comment=Cross-platform screenshot tool that provides many annotation features for your screenshots.
Categories=Utility;

View File

@ -0,0 +1,87 @@
[Desktop Entry]
Version=1.0
Name=Redshift
Name[be]=Redshift
Name[ca]=Redshift
Name[cs]=Redshift
Name[da]=Redshift
Name[de]=Redshift
Name[en_GB]=Redshift
Name[es]=Redshift
Name[fr]=Redshift
Name[he]=Redshift
Name[hu]=Redshift
Name[it]=Redshift
Name[ja]=Redshift
Name[lt]=Redshift
Name[nb]=Rødskift
Name[pl]=Redshift
Name[pt]=Redshift
Name[pt_BR]=Redshift
Name[ro]=Redshift
Name[ru]=Redshift
Name[sr]=Редшифт
Name[sv]=Redshift
Name[tr]=Redshift
Name[uk]=Redshift
Name[zh_CN]=红移
Name[zh_TW]=Redshift
GenericName=Color temperature adjustment
GenericName[be]=Рэгуляванне каляровай тэмпературы
GenericName[ca]=Ajust de la temperatura de color
GenericName[cs]=Nastavení teploty barev
GenericName[da]=Justering af farvetemperatur
GenericName[de]=Farbtemperaturanpassung
GenericName[en_GB]=Colour temperature adjustment
GenericName[es]=Ajuste de la temperatura de color
GenericName[fr]=Réglage de la température de couleur
GenericName[he]=התאמת טמפרטורת צבע
GenericName[hu]=Színhőmérséklet beállítása
GenericName[it]=Regolazione della temperatura del colore
GenericName[ja]=色温度の調整
GenericName[lt]=Spalvos temperatūros reguliavimas
GenericName[nb]=Justering av fargetemperatur
GenericName[nl]=Bijstelling van kleurtemperatuur
GenericName[pl]=Dostosowanie temperatury barwowej
GenericName[pt_BR]=Ajuste de temperatura de cor
GenericName[ru]=Настройка цветовой температуры
GenericName[sr]=Прилагођавање температуре боје
GenericName[sv]=Färgtemperaturjustering
GenericName[tr]=Renk sıcaklığı ayarı
GenericName[uk]=Налаштування колірної температури
GenericName[zh_CN]=色温调节
GenericName[zh_TW]=色溫調整
Comment=Color temperature adjustment tool
Comment[be]=Інструмент рэгулявання каляровай тэмпературы
Comment[ca]=Eina per a l'ajust de la temperatura de color
Comment[cs]=Nástroj pro přizpůsobení barevné teploty
Comment[da]=Justeringsværktøj for farvetemperatur
Comment[de]=Farbtemperaturanpassungswerkzeug
Comment[en_GB]=Colour temperature adjustment tool
Comment[es]=Herramienta para el ajuste de la temperatura de color
Comment[fr]=Outil de réglage de la température de couleur
Comment[he]=כלי להתאמת טמפרטורת צבע
Comment[hu]=Színhőmérséklet beállító eszköz
Comment[it]=Strumento per la regolazione della temperatura del colore
Comment[ja]=色温度の調整ツール
Comment[lt]=Spalvos temperatūros reguliavimo įrankis
Comment[nb]=Justeringsverktøy for fargetemperatur
Comment[nl]=Hulpmiddel voor het bijstellen van de kleurtemperatuur
Comment[pl]=Narzędzie do dostosowywania temperatury barwowej
Comment[pt_BR]=Ferramenta de ajuste de temperatura de cor
Comment[ru]=Инструмент регулирования цветовой температуры
Comment[sr]=Алатка за прилагођавање температуре боје
Comment[sv]=Justeringsverktyg för färgtemperaturer
Comment[tr]=Renk sıcaklığı ayarlama aracı
Comment[uk]=Знаряддя налаштувань колірної температури
Comment[zh_CN]=色温调节工具
Comment[zh_TW]=色溫調整工具
Exec=redshift-gtk
Icon=redshift
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=true
Hidden=false
X-GNOME-Autostart-enabled=true

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Script
Comment=Script executor
Icon=variety
Exec=sh -c "~/.config/autostart-scripts/setup.sh && rm -rf ~/.config/autostart/script.desktop"
Terminal=false
Type=Application
Name[de_DE.UTF-8]=Script.desktop

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Variety
Comment=Variety Wallpaper Changer
Icon=variety
Exec=variety
Terminal=false
Type=Application
X-GNOME-Autostart-Delay=20

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=java -Xmx1024m -jar "/opt/xdman/xdman.jar" -m
Name=Xtreme Download Manager
Comment=Xtreme Download Manager
Categories=Network;
Icon=/opt/xdman/icon.png

1
etc/sudoers.d/pwfeedback Executable file
View File

@ -0,0 +1 @@
Defaults pwfeedback

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Reboot To UEFI
GenericName=Reboot To UEFI
Comment=reboot to uefi the machine
Exec=systemctl reboot --firmware-setup
Icon=system-reboot
Categories=System;X-Leave;

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Suspend-then-hibernate
GenericName=Suspend-then-hibernate
Comment=suspend then hibernate the machine
Exec=systemctl suspend-then-hibernate
Icon=system-suspend
Categories=System;X-Leave;