xrootdatetime: better error handling

This commit is contained in:
Zynh Ludwig 2024-10-16 17:28:51 -07:00
parent ac6de63ef2
commit 431992eff7

View file

@ -46,8 +46,7 @@ in
systemd.user.services.xrootdatetime = {
script = ''
while true; do
micMuted=$(${getExe pkgs.pamixer} --default-source --get-mute)
if [[ "$micMuted" == "true" ]]; then
if [[ "$(${getExe pkgs.pamixer} --default-source --get-mute)" == "true" ]]; then
mutedString="Mic Muted "
else
mutedString=""