mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-11 01:12:43 +02:00
audio: add script to fzf change audio output
This commit is contained in:
1 parent
94d924a494
commit
7e4627c5c0
2 files changed
+22
No files matched your search
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user