From 98e36e5087a8855bf758c95d9e90d6feae15a619 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Tue, 23 Aug 2022 13:32:32 -0500 Subject: crcparse sound device --- rc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rc.lua') 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, -- cgit v1.2.3