(General)~loads of commits, getting ready to port dotfiles to another machine

This commit is contained in:
2021-07-06 19:02:25 +01:00
parent 9fa164dc11
commit 325d8b4ef7
10 changed files with 168 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
echo  "$(playerctl --player=spotify metadata title)"
title=$(playerctl --player=spotify metadata title)
echo "${title::40}"

View File

@@ -1,5 +1,11 @@
#!/usr/bin/env bash
sinks="$(pactl list sinks)"
vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
echo " $vol%"
mute="$(echo "$sinks" | grep "Mute: " | sed "s/.*Mute: //g")"
case "$mute" in
"no")
printf "";;
"yes")
printf "";;
esac
echo " $vol%"