aboutsummaryrefslogtreecommitdiff
path: root/.shenanigans.sh
diff options
context:
space:
mode:
Diffstat (limited to '.shenanigans.sh')
-rwxr-xr-x.shenanigans.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/.shenanigans.sh b/.shenanigans.sh
index 907b6a3..7b9cdeb 100755
--- a/.shenanigans.sh
+++ b/.shenanigans.sh
@@ -80,7 +80,7 @@ backup() {
80 rm -Rf /tmp/$SNAPSHOT 80 rm -Rf /tmp/$SNAPSHOT
81} 81}
82 82
83mic_status() { 83micstatus() {
84 pactl get-source-mute @DEFAULT_SOURCE@ | grep -q "no" && echo 1 || echo 0; 84 pactl get-source-mute @DEFAULT_SOURCE@ | grep -q "no" && echo 1 || echo 0;
85} 85}
86 86
@@ -88,3 +88,9 @@ slugify() {
88 local text="$1" 88 local text="$1"
89 echo "$text" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g' 89 echo "$text" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g'
90} 90}
91
92worldclocks() {
93 echo -e "Brisbane: \t$(TZ='Australia/Brisbane' date +'%a %H:%M')"
94 echo -e "San Francisco: \t$(TZ='America/Los_Angeles' date +'%a %H:%M')"
95 echo -e "New York: \t$(TZ='America/New_York' date +'%a %H:%M')"
96}