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