File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ this is a script to install pulseeffects in hippo or ant ubuntu/debian based system
2+
3+ MIT Copyright (c) 2021 Saicharan Kandukuri
Original file line number Diff line number Diff line change 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!.."
You can’t perform that action at this time.
0 commit comments