summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2022-08-23 13:32:32 -0500
committerZachIR <zachir@librem.one>2022-08-23 13:32:32 -0500
commit98e36e5087a8855bf758c95d9e90d6feae15a619 (patch)
treedfe71c17503bfb77ff6a74d50310785d501f594a /rc.lua
parentdda2169a287224783c0faf9c6bc8b8e4ee5b87eb (diff)
crcparse sound device
Diffstat (limited to 'rc.lua')
-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,