wip
This commit is contained in:
parent
38d53602ec
commit
c387fd1cd8
1 changed files with 24 additions and 23 deletions
47
hyprland.sh
47
hyprland.sh
|
@ -58,6 +58,7 @@ askThings() {
|
|||
choose terminal "Choose a menu.." alacritty foot kitty wezterm </dev/tty
|
||||
pen grey "$terminal was picked"
|
||||
|
||||
# ask the user if they want to uninstall certain packages defined down below
|
||||
removeUnwanted=false
|
||||
if confirm --default-no "Do you want to also remove conflicting packages?" </dev/tty; then
|
||||
removeUnwanted=true
|
||||
|
@ -65,6 +66,7 @@ askThings() {
|
|||
|
||||
line
|
||||
|
||||
# advanced dependencies for user installation
|
||||
advDeps=(
|
||||
"${menu:-rofi}"
|
||||
"${terminal:-foot}"
|
||||
|
@ -154,7 +156,7 @@ checkConfig() {
|
|||
done
|
||||
}
|
||||
|
||||
getDependencies() {
|
||||
install-dependencies() {
|
||||
pen blue bold "Checking build dependencies.."
|
||||
|
||||
# INFO:
|
||||
|
@ -163,22 +165,21 @@ getDependencies() {
|
|||
# │ automagically be pulled via the $pkgArray[$distro] variable │
|
||||
# ╰─────────────────────────────────────────────────────────────────────────╯
|
||||
generalDeps=(
|
||||
hyprland
|
||||
xdg-desktop-portal-hyprland
|
||||
hyprland-protocols
|
||||
wayland-protocols
|
||||
|
||||
grim
|
||||
slurp
|
||||
wlogout
|
||||
ffmpeg
|
||||
wob
|
||||
nwg-look
|
||||
kitty
|
||||
wl-clipboard
|
||||
"hyprland"
|
||||
"xdg-desktop-portal-hyprland"
|
||||
"hyprland-protocols"
|
||||
"wayland-protocols"
|
||||
"grim"
|
||||
"slurp"
|
||||
"wlogout"
|
||||
"ffmpeg"
|
||||
"wob"
|
||||
"nwg-look"
|
||||
"kitty"
|
||||
"wl-clipboard"
|
||||
)
|
||||
depsDebian=(
|
||||
hyprland-dev
|
||||
"hyprland-dev"
|
||||
)
|
||||
depsFedora=()
|
||||
depsOpensuse=(
|
||||
|
@ -187,9 +188,9 @@ getDependencies() {
|
|||
hyprland-qtutils
|
||||
)
|
||||
depsArch=(
|
||||
hyprpolkitagent
|
||||
wayland-utils
|
||||
wayland-protocols
|
||||
"hyprpolkitagent"
|
||||
"wayland-utils"
|
||||
"wayland-protocols"
|
||||
)
|
||||
depsAlpine=()
|
||||
|
||||
|
@ -236,10 +237,10 @@ getDependencies() {
|
|||
|
||||
remove-unwanted() {
|
||||
local arr=(
|
||||
mako
|
||||
nano
|
||||
dunst
|
||||
hyprpaper
|
||||
"mako"
|
||||
"nano"
|
||||
"dunst"
|
||||
"hyprpaper"
|
||||
)
|
||||
|
||||
check-and-remove ${arr[@]}
|
||||
|
@ -286,7 +287,7 @@ main() {
|
|||
pen bold yellow "Executing script silently!"
|
||||
fi
|
||||
|
||||
getDependencies
|
||||
install-dependencies
|
||||
|
||||
# remove conflicting packages if the user confirmed it
|
||||
if $removeUnwanted; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue