feat(hyprland): fix toggle sound output script.
This commit is contained in:
parent
fc420c1d7f
commit
6efa104d8f
1 changed files with 4 additions and 5 deletions
|
|
@ -39,8 +39,8 @@
|
|||
toggle-sound-output = pkgs.writeShellScriptBin "toggle-sound-output" ''
|
||||
#!/usr/bin/env sh
|
||||
|
||||
speakers="alsa_output.pci-0000_05_00.1.hdmi-stereo"
|
||||
headphones="alsa_output.usb-Xtrfy_SC1_Xtrfy_SC1-00.analog-stereo"
|
||||
speakers="alsa_output.pci-0000_01_00.1.hdmi-stereo"
|
||||
headphones="alsa_output.pci-0000_00_1f.3.analog-stereo"
|
||||
|
||||
current="$(wpctl status -n | grep Audio/Sink | grep -oE '[^ ]+$')"
|
||||
|
||||
|
|
@ -49,7 +49,6 @@
|
|||
else
|
||||
wpctl set-default "$(pw-cli info $headphones | head -n 1 | awk '{print $2}')"
|
||||
fi
|
||||
|
||||
'';
|
||||
power-menu = pkgs.writeShellScriptBin "power-menu" ''
|
||||
#!/usr/bin/env sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue