summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.lua b/rc.lua
index c32f4fc..f21a545 100644
--- a/rc.lua
+++ b/rc.lua
@@ -271,6 +271,12 @@ awful.screen.connect_for_each_screen(function(s)
-- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s, height = 24})
+ if (crcparse("snd") == "pipewire") or (crcparse("snd") == "pulseaudio") or (crcparse("snd") == "pulse") then
+ snd="pulse"
+ else
+ snd="default"
+ end
+
net = crcparse("net")
if is_linux() then
@@ -302,6 +308,7 @@ awful.screen.connect_for_each_screen(function(s)
path_to_icon = "/usr/share/icons/Paper/scalable/status/audio-volume-muted-symbolic.svg",
widget_type = "arc",
mute_color = "#ff111111",
+ device = snd,
},
battery_widget { path_to_icons = "/usr/share/icons/Paper/scalable/status/" },
mykeyboardlayout,