Add script for swapping audio outs
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
"margin-right": 16,
|
||||
"modules-left": ["gamemode", "battery", "temperature", "cpu", "memory", "network"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
|
||||
"modules-right": ["mpris", "pulseaudio", "custom/output-device", "backlight", "idle_inhibitor", "clock"],
|
||||
"clock": {
|
||||
"format": "{:%a %b %d %I:%M %p}",
|
||||
"tooltip": false
|
||||
@@ -143,5 +143,14 @@
|
||||
"format": "",
|
||||
"tooltip-format": "An rpm-ostree deployment is pending and will be applied upon the next reboot",
|
||||
"exec": "rpm-ostree status --json | jq -e '.deployments[0].staged'"
|
||||
},
|
||||
"custom/output-device": {
|
||||
"interval": 60,
|
||||
"format": "{}",
|
||||
"tooltip-format": "Click to switch between output devices",
|
||||
"exec-on-event": true,
|
||||
"exec": "$HOME/.config/waybar/scripts/output-devices.py --iconify",
|
||||
"on-click": "$HOME/.config/waybar/scripts/output-devices.py --next --iconify",
|
||||
"on-click-right": "$HOME/.config/waybar/scripts/output-devices.py --previous --iconify"
|
||||
}
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user