mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-26 06:46:04 +00:00
Swap nala apt-get
This commit is contained in:
parent
6838811e74
commit
61cddeb256
|
@ -125,7 +125,7 @@ checkDistro() {
|
||||||
|
|
||||||
checkEnv() {
|
checkEnv() {
|
||||||
checkCommandRequirements 'curl groups sudo'
|
checkCommandRequirements 'curl groups sudo'
|
||||||
checkPackageManager 'apt-get nala dnf pacman zypper yum xbps-install nix-env'
|
checkPackageManager 'nala apt-get dnf pacman zypper yum xbps-install nix-env'
|
||||||
checkCurrentDirectoryWritable
|
checkCurrentDirectoryWritable
|
||||||
checkSuperUser
|
checkSuperUser
|
||||||
checkDistro
|
checkDistro
|
||||||
|
|
|
@ -5,20 +5,20 @@
|
||||||
install_theme_tools() {
|
install_theme_tools() {
|
||||||
printf "%b\n" "${YELLOW}Installing theme tools (qt6ct and kvantum)...${RC}\n"
|
printf "%b\n" "${YELLOW}Installing theme tools (qt6ct and kvantum)...${RC}\n"
|
||||||
case $PACKAGER in
|
case $PACKAGER in
|
||||||
apt-get)
|
apt-get|nala)
|
||||||
$ESCALATION_TOOL apt-get update
|
$ESCALATION_TOOL "${PACKAGER}" update
|
||||||
$ESCALATION_TOOL apt-get install -y qt6ct kvantum
|
$ESCALATION_TOOL "${PACKAGER}" install -y qt6ct kvantum
|
||||||
;;
|
;;
|
||||||
zypper)
|
zypper)
|
||||||
$ESCALATION_TOOL zypper refresh
|
$ESCALATION_TOOL "${PACKAGER}" refresh
|
||||||
$ESCALATION_TOOL zypper --non-interactive install qt6ct kvantum
|
$ESCALATION_TOOL "${PACKAGER}" --non-interactive install qt6ct kvantum
|
||||||
;;
|
;;
|
||||||
dnf)
|
dnf)
|
||||||
$ESCALATION_TOOL dnf update
|
$ESCALATION_TOOL "${PACKAGER}" update
|
||||||
$ESCALATION_TOOL dnf install -y qt6ct kvantum
|
$ESCALATION_TOOL "${PACKAGER}" install -y qt6ct kvantum
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
$ESCALATION_TOOL pacman -S --needed --noconfirm qt6ct kvantum
|
$ESCALATION_TOOL "${PACKAGER}" -S --needed --noconfirm qt6ct kvantum
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager. Please install qt6ct and kvantum manually.${RC}\n"
|
printf "%b\n" "${RED}Unsupported package manager. Please install qt6ct and kvantum manually.${RC}\n"
|
||||||
|
|
|
@ -10,7 +10,7 @@ setup_xrandr() {
|
||||||
pacman)
|
pacman)
|
||||||
$ESCALATION_TOOL "${PACKAGER}" -S --noconfirm xorg-xrandr
|
$ESCALATION_TOOL "${PACKAGER}" -S --noconfirm xorg-xrandr
|
||||||
;;
|
;;
|
||||||
apt-get)
|
apt-get|nala)
|
||||||
$ESCALATION_TOOL "${PACKAGER}" install -y x11-xserver-utils
|
$ESCALATION_TOOL "${PACKAGER}" install -y x11-xserver-utils
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -83,4 +83,5 @@ confirm_action() {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
setup_xrandr
|
setup_xrandr
|
Loading…
Reference in New Issue
Block a user