-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added script to install pulseeffects
- Loading branch information
1 parent
eec7bec
commit 4ae2b9e
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!.." |