Skip to content

Commit

Permalink
added script to install pulseeffects
Browse files Browse the repository at this point in the history
  • Loading branch information
SaicharanKandukuri committed Jul 10, 2021
1 parent eec7bec commit 4ae2b9e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/scripts/pulseeffects/README.txt
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions etc/scripts/pulseeffects/install.sh
Original file line number Diff line number Diff line change
@@ -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!.."

0 comments on commit 4ae2b9e

Please sign in to comment.