diff options
author | ZachIR <zachir@librem.one> | 2022-08-23 13:32:32 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2022-08-23 13:32:32 -0500 |
commit | 98e36e5087a8855bf758c95d9e90d6feae15a619 (patch) | |
tree | dfe71c17503bfb77ff6a74d50310785d501f594a /rc.lua | |
parent | dda2169a287224783c0faf9c6bc8b8e4ee5b87eb (diff) |
crcparse sound device
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |