audio: add script to fzf change audio output

This commit is contained in:
2026-05-17 21:56:38 +02:00
parent 94d924a494
commit 7e4627c5c0
2 changed files with 22 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{
writeShellApplication,
fzf,
pactl,
jq,
...
}:
writeShellApplication {
name = "custom-changeAudioOutput";
runtimeInputs = [
fzf
pactl
jq
];
text = ''
$select=pactl -f json list sinks | jq -r '.[].name' | fzf
if [[ -n "$select" ]]; then
pactl set-default-sink $select
fi
'';
}