commit 8e95c14dbc037c66f937ab1757d39889c15f2573
parent d991320a3d58a8c995c4b4b8049ebe7de85ff633
Author: Matthew Carlson <matt@mcarlson.xyz>
Date: Tue, 7 Sep 2021 23:54:08 -0400
small changes transferred to laptop
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/.local/bin/bar/music.sh b/.local/bin/bar/music.sh
@@ -22,6 +22,9 @@ toggle() {
get_song_and_state
+ # no songs playing so don't do anything
+ if printf '%s\n' "${song}" | awk '{ print $1,$2 }' | grep -iq '^volume:\s[0-9][0-9]*%$'; then return 1; fi
+
# convert first letter of state from lowercase to uppercase
first_letter="$(printf '%s\n' "${state}" | cut -c 1 | tr '[:lower:]' '[:upper:]')"
rest="$(printf '%s\n' "${state}" | cut -c 2-)"
diff --git a/.local/bin/pass.sh b/.local/bin/pass.sh
@@ -2,7 +2,9 @@
#
# pass
+# named pass in order to just werk when switching from popular pass program
CREDENTIALS_DIR="${XDG_DATA_HOME:-${HOME}/.local/share/}/pass"
+
NEWLINE='
'