Commit 7eb9d97d authored by uoou's avatar uoou

volume

parent 4be66de3
#!/usr/bin/env bash
if ! [ "$#" -eq 2 ];then
echo "usage: `basename $0` aplication volume (percent or +/- percent)"
exit 1
fi
client=$(pactl list sink-inputs | tac | sed -n "/application.name = \"$1\"/,/Sink Input/p" | tail -n 1 | awk -F"#" '{ print $2 }')
pactl set-sink-input-volume "$client" "$2%"
......@@ -19,7 +19,6 @@ if [ "$seconds" -le 0 ];then
exit 1
fi
randpoint=$((1 + RANDOM % "$seconds"))
randpoint=3728
ffmpeg -ss "$randpoint" -i "$1" -vf hue=h=310:s=2.8:b=3,eq=contrast=4 -vframes 1 "$location" -y >> /dev/null 2>&1 &&
convert "$location" \
......
......@@ -8,6 +8,8 @@ do
echo -n "$file" | xclip -selection clipboard ;;
"C-w")
feh --bg-fill "$file" ;;
"C-h")
dope "$file" ;;
esac
done
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment