aboutsummaryrefslogtreecommitdiff
path: root/bash/util.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-17 18:48:25 -0300
committerEuAndreh <eu@euandre.org>2019-06-17 18:48:25 -0300
commit46194d46d5a22dd54a7fdd5704e7108a23969a9a (patch)
tree17b1390820f3fa135b28d66449111e64e41a9d31 /bash/util.sh
parenttmuxinator: Adapt annex.yml custom layout for cmus (diff)
downloaddotfiles-46194d46d5a22dd54a7fdd5704e7108a23969a9a.tar.gz
dotfiles-46194d46d5a22dd54a7fdd5704e7108a23969a9a.tar.xz
xmobar: Full refactor
- drop trayer; - integrate with media with playerctl through MPRIS; - use default values and configurations for xmobar Commands.
Diffstat (limited to 'bash/util.sh')
-rw-r--r--bash/util.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash/util.sh b/bash/util.sh
index e29d02ff..a1186fab 100644
--- a/bash/util.sh
+++ b/bash/util.sh
@@ -32,3 +32,7 @@ merkle-tree () {
awk '{print $1}'
popd > /dev/null || exit 1
}
+
+# Taken from:
+# https://stackoverflow.com/questions/6250698/how-to-decode-url-encoded-string-in-shell
+urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }