Pulseaudio slider doesn't show up #3373
-
Hi, I'd like to try the pulseaudio-slider module, but it doesn't show up. The pulseaudio module works well however. I'm on nixos and here is my config. I'm a bit confused because I never saw someone having an issue with it. {
"spacing": 4,
"margin-left": 8,
"margin-top": 8,
"margin-right": 8,
"margin-bottom": 1,
"modules-left": ["sway/workspaces", "sway/scratchpad", "sway/mode"],
"modules-center": ["clock"],
"modules-right": [
"tray",
"idle_inhibitor",
"pulseaudio#mic",
"pulseaudio#audio",
"pulseaudio-slider",
"backlight",
"network",
"bluetooth",
"sway/language",
"keyboard-state",
"battery"
],
//modules
"keyboard-state": {
"numlock": true,
"format": "{icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/scratchpad": {
"format": "",
"show-empty": false,
"tooltip": false,
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"spacing": 10
},
"clock": {
"timezone": "America/Cayenne",
"tooltip-format": "<big>{:%Y %B}</big>\n{calendar}",
"format": "{:%a %b %d %I:%M %p}"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"on-scroll-down": "brightnessctl s +1%",
"on-scroll-up": "brightnessctl s 1%-",
"on-click": "brightnessctl s 4000",
"on-click-middle": "brightnessctl s 12000",
"on-click-right": "brightnessctl s 20000",
"tooltip": false
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-plugged": "",
"format-icons": ["", "", "", "", ""],
"tooltip-format" : "{capacity}%",
},
"network": {
"align": 0.3,
"format-wifi": "{icon}",
"format-ethernet": "",
"format-disconnected": "",
"format-disabled": "",
"format-icons": ["","","","",""],
"tooltip-format": "{essid} [{signalStrength}%]",
"tooltip-format-disconnected": "...",
"tooltip-format-disabled": "Off",
"on-click": "sudo rfkill toggle wlan",
"min-length": 2
},
"bluetooth": {
"format-on": "",
"format-off": "",
"format-disabled": "",
"format-connected": "",
"tooltip" : false,
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"on-click" : "sudo rfkill toggle bluetooth",
"on-click-middle" : "bluetoothctl disconnect 74:8F:3C:0F:7D:9A",
"on-click-right" : "bluetoothctl connect 74:8F:3C:0F:7D:9A",
},
"pulseaudio#audio": {
"format": "{icon} {volume}",
"format-bluetooth-muted": "",
"format-muted": "",
"format-icons": {
"headphone": "",
"default": ""
},
"on-click" : "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-scroll-down" : "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ -l 1",
"on-scroll-up" : "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-",
"tooltip": false
},
"pulseaudio#mic": {
"format": "{format_source}",
"format-source": " {volume}",
"format-source-muted": "",
"on-click" : "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"on-scroll-down" : "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 1%+ -l 1",
"on-scroll-up" : "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 1%-",
"tooltip": true,
},
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal"
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Have you ever started waybar from terminal and/or looked at log output? With your config, I'm getting this:
is wrong, it needs to be
|
Beta Was this translation helpful? Give feedback.
Have you ever started waybar from terminal and/or looked at log output? With your config, I'm getting this:
[2024-07-01 18:25:52.076] [warning] module pulseaudio-slider: Unknown module: pulseaudio-slider
There is actually a bug in the manpage example.is wrong, it needs to be