ironbar
ironbar copied to clipboard
Volume not being displayed
Describe the bug
The volume component is not being displayed.
To Reproduce Steps to reproduce the behavior:
- Go to wiki
- Add the volume component
- Run
ironbarfrom the terminal - See error
Expected behavior The icon and volume being displayed
System information:
- Distro: Artix Linux
- Compositor: Hyprland
- Ironbar version: 0.16.1.r156.g00e5ac8-1
Configuration
Config
let {
$height = 16
$network = {
type = "network_manager"
icon_size = 14
}
$battery = {
type = "upower"
icon_size = 14
format = "{percentage}%"
}
$system = {
type = "sys_info"
name = "system"
interval = {
memory = 5
cpu = 5
temps = 5
}
format = [
" {cpu_percent}%"
" {temp_c:k10temp-Tctl}°C"
" {memory_percent}%"
]
}
$tray = {
type = "tray"
direction = "h"
icon_size = 14
}
$volume = {
name = "som"
type = "volume"
format = "{icon} {percentage}%"
max_volume = 100
icons = {
volume_high = ""
volume_medium = ""
volume_low = ""
muted = ""
}
}
$workspace = {
type = "workspaces"
on_scroll_up = "hyprctl dispatch workspace -1"
on_scroll_down = "hyprctl dispatch workspace +1"
}
$launcher = {
type = "launcher"
show_names = false
show_icons = true
reversed = true
icon_size = 16
}
$clock = {
type = "clock"
format = "%H:%M:%S"
format_popup = ""
}
} in {
monitors = {
eDP-1 = {
height = $height
start = [ $workspace ]
center = [ $launcher ]
end = [
$network
$system
$battery
// $brightness
$volume
$clock
]
}
HDMI-A-1 = {
height = $height
center = [ $workspace ]
}
}
}
Styles
* {
font-family: FiraCodeMono;
box-shadow: none;
border: unset;
border-radius: 0px;
background: rgba(0, 0, 0, 0);
border-image: none;
background-image: none;
outline: none;
text-shadow: none;
/* margin: 0;
padding: 0; */
}
.workspaces .item {
padding: 3px;
/* color: #cba6f7; */
}
.workspaces .item.focused {
background: rgba(33, 37, 43, 0.5);
}
.workspaces .item.urgent {
background: rgba(206, 105, 117, 0.5);
}
.network_manager {
/* box-shadow: inset 0px 4px 0px 0px magenta; */
}
.upower {
margin-right: -10px;
}
.network,
.clock,
.system,
.network_manager {
margin-left: 8px;
margin-right: 8px;
padding: 0px;
}
Additional context
There's an error when I run ironbar:
2025-03-10T02:14:27.448198Z INFO ironbar: 135: Ironbar version 0.16.1
2025-03-10T02:14:27.448216Z INFO ironbar: 136: Starting application
2025-03-10T02:14:27.464932Z WARN GTK: 116: [dbind] Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
2025-03-10T02:14:27.478125Z WARN ironbar::ipc::server: 33: Socket already exists. Did Ironbar exit abruptly?
2025-03-10T02:14:27.478143Z WARN ironbar::ipc::server: 34: Attempting IPC shutdown to allow binding to address
2025-03-10T02:14:27.478218Z INFO ironbar::ipc::server: 39: Starting IPC on /run/user/1000/ironbar-ipc.sock
2025-03-10T02:14:27.478949Z INFO ironbar::bar: 122: Initializing bar 'bar-8' on 'eDP-1'
2025-03-10T02:14:27.480189Z INFO ironbar::clients::compositor::hyprland: 42: Starting Hyprland event listener
2025-03-10T02:14:27.510886Z ERROR ironbar::clients::volume: 119: PAErr(-1)
2025-03-10T02:14:27.525588Z INFO ironbar::bar: 122: Initializing bar 'bar-19' on 'HDMI-A-1'
Screenshots
I can't find any docs on what error -1 from Pulse means. Can you give a little detail on your sound server setup please (ie what software/version, how is it running, etc)?
@JakeStanger I'm using
alsa-lib 1.2.13-1
libpulse 17.0+r43+g3e2bb8a1e-1
pipewire-pulse 1:1.2.7-1
it works as expected with my waybar config.
Sorry for the delay, finally looking at this.
The error occurs when trying to connect to the Pulse server. It attempts to connect to the default running server, and will not attempt to spawn its own. Perhaps that's the issue?
I'd need to know more about how you are actually running your pipewire-pulse server to be able to debug. Are you running a user or system service? Is it running using a .socket or .service or otherwise? Is it a local server, or running elsewhere? Any non-standard auth?
I reinstalled my OS recently and am using Artix Linux (Dinit) which has somehow fixed the problem. I was using OpenRC earlier, otherwise I don't remember how pulse is configured.
Thank you for your time.