mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
7 lines
277 B
Bash
7 lines
277 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
sink=$(pactl list sinks | grep "Sink #" | head -n $1 | tail -n 1)
|
|
card=$(pactl list sinks | grep "alsa.card_name" | head -n $1 | tail -n 1)
|
|
pactl set-default-sink $(echo $sink | cut -d "#" -f 2)
|
|
notify-send "Active Sink: $(echo $card | cut -d "\"" -f 2)"
|