Dank and Noctalia Shells (#1321)
* added dank and noctalia shells. fixed blender install * Renamed noctalia setup to be correct * Updated tab data and userguide
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
. ../common-script.sh
|
||||
. ../common-service-script.sh
|
||||
|
||||
installDank() {
|
||||
printf "%b\n" "${YELLOW}Installing Dank Shell...${RC}"
|
||||
|
||||
if ! command_exists dms; then
|
||||
curl -fsSL https://install.danklinux.com | sh
|
||||
else
|
||||
printf "%b\n" "${GREEN}Dank Shell already installed${RC}"
|
||||
fi
|
||||
|
||||
printf "%b\n" "${GREEN}Dank Shell installation complete${RC}"
|
||||
}
|
||||
|
||||
uninstallDank() {
|
||||
printf "%b\n" "${YELLOW}Uninstalling Dank Shell...${RC}"
|
||||
|
||||
if command_exists dms; then
|
||||
case "$PACKAGER" in
|
||||
pacman)
|
||||
"$AUR_HELPER" -Rns --noconfirm --cleanafter dms-shell greetd-dms-greeter-git
|
||||
;;
|
||||
apt-get|nala|dnf|zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" remove -y dms
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported Package Manager: $PACKAGER${RC}"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}Dank Shell is not installed${RC}"
|
||||
fi
|
||||
|
||||
printf "%b\n" "${GREEN}Dank Shell uninstall complete${RC}"
|
||||
}
|
||||
|
||||
main() {
|
||||
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall Dank Shell${RC}"
|
||||
printf "%b\n" "1. ${YELLOW}Install${RC}"
|
||||
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
|
||||
printf "%b" "Enter your choice [1-2]: "
|
||||
read -r CHOICE
|
||||
case "$CHOICE" in
|
||||
1) installDank ;;
|
||||
2) uninstallDank ;;
|
||||
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
checkEnv
|
||||
main
|
||||
@@ -48,11 +48,11 @@ main() {
|
||||
printf "%b" "Enter your choice [1-2]: "
|
||||
read -r CHOICE
|
||||
case "$CHOICE" in
|
||||
1) installBender ;;
|
||||
1) installBlender ;;
|
||||
2) uninstallBlender ;;
|
||||
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
checkEnv
|
||||
main
|
||||
main
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
#
|
||||
. ../common-script.sh
|
||||
. ../common-service-script.sh
|
||||
|
||||
installNoctalia() {
|
||||
printf "%b\n" "${YELLOW}Installing Noctalia Shell...${RC}"
|
||||
|
||||
if ! command_exists dms; then
|
||||
case "$PACKAGER" in
|
||||
pacman)
|
||||
"$AUR_HELPER" -S --needed --noconfirm --cleanafter noctalia-shell noctalia-qs
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y noctalia-shell
|
||||
;;
|
||||
apt-get|nala)
|
||||
curl -fsSL https://pkg.noctalia.dev/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/noctalia.gpg
|
||||
echo "deb [signed-by=/etc/apt/keyrings/noctalia.gpg] https://pkg.noctalia.dev/apt trixie main" | sudo tee /etc/apt/sources.list.d/noctalia.list
|
||||
"$ESCALATION_TOOL" "$PACKAGER" update
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y noctalia-shell
|
||||
;;
|
||||
zypper)
|
||||
# Only needed for Leap
|
||||
"$ESCALATION_TOOL" "$PACKAGER" addrepo --refresh --name noctalia-legacy https://download.opensuse.org/repositories/home:neifua:Noctalia/16.0/home:neifua:Noctalia.repo
|
||||
|
||||
"$ESCALATION_TOOL" "$PACKAGER" refresh
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y noctalia-shell
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported Package Manager: $PACKAGER${RC}"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}Noctalia Shell already installed${RC}"
|
||||
fi
|
||||
|
||||
printf "%b\n" "${GREEN}Noctalia Shell installation complete${RC}"
|
||||
}
|
||||
|
||||
uninstallNoctalia() {
|
||||
printf "%b\n" "${YELLOW}Uninstalling Noctalia Shell...${RC}"
|
||||
|
||||
if command_exists dms; then
|
||||
case "$PACKAGER" in
|
||||
pacman)
|
||||
"$AUR_HELPER" -Rns --noconfirm --cleanafter noctalia-shell noctalia-qs
|
||||
;;
|
||||
apt-get|nala|dnf|zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" remove -y noctalia-shell
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported Package Manager: $PACKAGER${RC}"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}Noctalia Shell is not installed${RC}"
|
||||
fi
|
||||
|
||||
printf "%b\n" "${GREEN}Noctalia Shell uninstall complete${RC}"
|
||||
}
|
||||
|
||||
main() {
|
||||
printf "%b\n" "${YELLOW}Do you want to Install or Uninstall Noctalia Shell${RC}"
|
||||
printf "%b\n" "1. ${YELLOW}Install${RC}"
|
||||
printf "%b\n" "2. ${YELLOW}Uninstall${RC}"
|
||||
printf "%b" "Enter your choice [1-2]: "
|
||||
read -r CHOICE
|
||||
case "$CHOICE" in
|
||||
1) installNoctalia ;;
|
||||
2) uninstallNoctalia ;;
|
||||
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
checkEnv
|
||||
main
|
||||
@@ -449,3 +449,15 @@ name = "ZSH Prompt"
|
||||
description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. This command installs ZSH prompt and provides basic configuration."
|
||||
script = "zsh-setup.sh"
|
||||
task_list = "I FM"
|
||||
|
||||
[[data]]
|
||||
name = "Dank Shell"
|
||||
description = "DankMaterialShell is a complete desktop shell for niri, Hyprland, MangoWC, Sway, labwc, Scroll, Miracle WM, and other Wayland compositors. It replaces waybar, swaylock, swayidle, mako, fuzzel, polkit, and everything else you'd normally stitch together to make a desktop"
|
||||
script = "dank-shell.sh"
|
||||
task_list = "I FM"
|
||||
|
||||
[[data]]
|
||||
name = "Noctalia Shell"
|
||||
description = "Noctalia is a native Wayland desktop shell for people who want a polished, configurable Linux desktop without stitching together a separate bar, launcher, notification daemon, lock screen, wallpaper tool, and settings UI."
|
||||
script = "noctalia-shell.sh"
|
||||
task_list = "I FM"
|
||||
|
||||
Reference in New Issue
Block a user