Skip to content

Commit 4ae2b9e

Browse files
added script to install pulseeffects
1 parent eec7bec commit 4ae2b9e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
this is a script to install pulseeffects in hippo or ant ubuntu/debian based system
2+
3+
MIT Copyright (c) 2021 Saicharan Kandukuri
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
# * Usefull functions
4+
# die() exit with code 1 with printing given string
5+
# warn() like die() without exit status (used when exit is not necessary)
6+
# shout() pring messege in a good way with some lines
7+
# lshout() print messege in a standard way
8+
9+
die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;}
10+
warn () { echo -e "${RED}Error ${*}${RST}";:;}
11+
shout () { echo -e "${DC}-----";echo -e "${*}";echo -e "-----${RST}";:; }
12+
lshout () { echo -e "${DC}";echo -e "${*}";echo -e "${RST}";:; }
13+
14+
shout "trying to update indexes........."
15+
apt update; apt upgrade -y || {
16+
warn "failed to update indexes..."
17+
}
18+
19+
20+
shout "trying to install pulse-effects...."
21+
22+
apt install pulseeffects || {
23+
die "failed to install pulseeffects........"
24+
}
25+
lshout "Done..."
26+
27+
shout "setting up workaround....."
28+
29+
timeout 9 dconf reset -f /com/github/wwmm/pulseeffects/ || warn "timeout.." && lshout "Done!.."

0 commit comments

Comments
 (0)