Files
dotfiles/hypr/scripts/buds/locate.sh
2025-09-26 10:42:15 +03:00

11 lines
316 B
Bash
Executable File

#!/bin/bash
SINK="alsa_output.pci-0000_00_1f.3.analog-stereo"
SOUND="/home/greg/Templates/Sounds/telegram.mp3"
current_volume=$(pactl get-sink-volume $SINK | awk '{print $5}' | sed 's/%//')
pactl set-sink-volume $SINK 100%
pw-cat --target $SINK -p $SOUND --volume 1
pactl set-sink-volume $SINK ${current_volume}%