Waybar : Swap sound clicks.
This commit is contained in:
parent
a190f35e8f
commit
4bd377c94d
|
@ -81,7 +81,8 @@ in {
|
|||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "sound_output_cycle",
|
||||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||||
"on-click-middle": "swayscript sound_output_cycle",
|
||||
"on-click-right": "pavucontrol"
|
||||
},
|
||||
"mpris": {
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
{ ... }: {
|
||||
text = ''
|
||||
# Open a sound control panel.
|
||||
function sound() {
|
||||
pavucontrol
|
||||
}
|
||||
|
||||
# Cycle output devices.
|
||||
function sound_output_cycle() {
|
||||
local IFS=$'\n'
|
||||
local current=$(pactl get-default-sink)
|
Loading…
Reference in a new issue