diff --git a/etc/scripts/pulseeffects/README.txt b/etc/scripts/pulseeffects/README.txt new file mode 100644 index 0000000..9b9999e --- /dev/null +++ b/etc/scripts/pulseeffects/README.txt @@ -0,0 +1,3 @@ +this is a script to install pulseeffects in hippo or ant ubuntu/debian based system + +MIT Copyright (c) 2021 Saicharan Kandukuri \ No newline at end of file diff --git a/etc/scripts/pulseeffects/install.sh b/etc/scripts/pulseeffects/install.sh new file mode 100644 index 0000000..e1bd4ff --- /dev/null +++ b/etc/scripts/pulseeffects/install.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# * Usefull functions +# die() exit with code 1 with printing given string +# warn() like die() without exit status (used when exit is not necessary) +# shout() pring messege in a good way with some lines +# lshout() print messege in a standard way + +die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;} +warn () { echo -e "${RED}Error ${*}${RST}";:;} +shout () { echo -e "${DC}-----";echo -e "${*}";echo -e "-----${RST}";:; } +lshout () { echo -e "${DC}";echo -e "${*}";echo -e "${RST}";:; } + +shout "trying to update indexes........." +apt update; apt upgrade -y || { + warn "failed to update indexes..." +} + + +shout "trying to install pulse-effects...." + +apt install pulseeffects || { + die "failed to install pulseeffects........" +} +lshout "Done..." + +shout "setting up workaround....." + +timeout 9 dconf reset -f /com/github/wwmm/pulseeffects/ || warn "timeout.." && lshout "Done!.."