adapting for dream use
This commit is contained in:
parent
84ba07683f
commit
57db70049e
1 changed files with 16 additions and 8 deletions
24
hyprpanel.sh
24
hyprpanel.sh
|
@ -16,8 +16,8 @@ command_exists() {
|
||||||
# CAUTION:
|
# CAUTION:
|
||||||
# This only wokrs for generic package names, like neovim, or vim, or tmux etc..
|
# This only wokrs for generic package names, like neovim, or vim, or tmux etc..
|
||||||
# not every package packagemanager has the same packagenames for their packages..
|
# not every package packagemanager has the same packagenames for their packages..
|
||||||
getImports() {
|
source-script() {
|
||||||
i="https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh"
|
i="https://git.k4li.de/scripts/imports/raw/branch/main/dream.sh"
|
||||||
import="$(mktemp)"
|
import="$(mktemp)"
|
||||||
if command_exists curl; then
|
if command_exists curl; then
|
||||||
curl -fsSL $i -o $import
|
curl -fsSL $i -o $import
|
||||||
|
@ -29,7 +29,6 @@ getImports() {
|
||||||
source "$import"
|
source "$import"
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
rm "$import"
|
rm "$import"
|
||||||
echo_warning "cleaned $import"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
@ -43,19 +42,28 @@ main() {
|
||||||
|
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
arch)
|
arch)
|
||||||
local deps="brightnessctl"
|
local deps="brightnessctl ags-hyprpanel-git"
|
||||||
_install "$deps"
|
pkg-install $deps
|
||||||
_install ags-hyprpanel-git
|
pkg-install ags-hyprpanel-git
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo_error "$distro is not supported by this script. Exiting now!"
|
echo_error "$distro is not supported by this script. Exiting now!"
|
||||||
return 69
|
return 69
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
clone_to_ags
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if getImports; then
|
setup-env() {
|
||||||
|
# local beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh
|
||||||
|
# local pika=https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh
|
||||||
|
local dream=https://git.k4li.de/scripts/imports/raw/branch/main/dream.sh
|
||||||
|
|
||||||
|
if ! command_exists pkg-install && ! command_exists check-and-install && ! command_exists spin; then
|
||||||
|
source-script $dream
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if setup-env; then
|
||||||
# ─< package variable >───────────────────────────────────────────────────────────────────
|
# ─< package variable >───────────────────────────────────────────────────────────────────
|
||||||
unset PACKAGE
|
unset PACKAGE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue