From 892b5a1db93271f3a53b4f6487f4ad20e5005d67 Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 4 Sep 2019 20:50:48 +0200 Subject: Add i3pystatus --- dotfiles/config/i3pystatus/get_volume.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 dotfiles/config/i3pystatus/get_volume.sh (limited to 'dotfiles/config/i3pystatus/get_volume.sh') diff --git a/dotfiles/config/i3pystatus/get_volume.sh b/dotfiles/config/i3pystatus/get_volume.sh new file mode 100755 index 0000000..e0372f2 --- /dev/null +++ b/dotfiles/config/i3pystatus/get_volume.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo $(if [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-lineout" ]]; then echo "Headphones"; elif [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-headphones" ]]; then echo "Line Out"; fi) -- cgit v1.2.1