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