Added audio device selector, new notification theme and much more. Rewritten some files and made a new README

This commit is contained in:
Kievits Rene
2022-05-16 16:06:02 +02:00
parent 07b2b9ad4e
commit cc00832342
64 changed files with 4720 additions and 3328 deletions

27
awesome/src/scripts/mic.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
SINK=$(LC_ALL=C pactl get-default-source)
case $1 in
"volume")
echo $(LC_ALL=C pactl get-source-volume $SINK | awk '{print $5}')
;;
"mute")
echo $(LC_ALL=C pactl get-source-mute $SINK)
;;
"toggle_mute")
$(LC_ALL=C pactl set-source-mute $SINK toggle)
;;
"set_volume")
$(LC_ALL=C pactl set-source-volume $SINK $2)
;;
"set_source")
$(LC_ALL=C pactl set-default-source $2)
;;
esac

View File

@@ -2,10 +2,17 @@
SINK=$(LC_ALL=C pactl get-default-sink)
if [[ $1 == "volume" ]]
then
echo $(LC_ALL=C pactl get-sink-volume $SINK | awk '{print $5}')
elif [[ $1 == "mute" ]]
then
echo $(LC_ALL=C pactl get-sink-mute $SINK)
fi
case $1 in
"volume")
echo $(LC_ALL=C pactl get-sink-volume $SINK | awk '{print $5}')
;;
"mute")
echo $(LC_ALL=C pactl get-sink-mute $SINK)
;;
"set_sink")
$(LC_ALL=C pactl set-default-sink $2)
;;
esac