fixed mic mute led

This commit is contained in:
paul-loedige
2021-11-05 18:37:17 +01:00
parent e0fa2f3110
commit 618303c2f4
4 changed files with 10 additions and 2 deletions
+3
View File
@@ -1,6 +1,7 @@
import subprocess
import psutil
import re
import os
from libqtile import widget, bar
@@ -104,8 +105,10 @@ class Mic(widget.base._TextBox):
def _update_drawer(self):
if self.emoji:
if self.volume > 0:
subprocess.call([os.path.expanduser('~/.config/qtile/mic_led.sh'), "0"])
self.text = ''
elif self.volume <= 0:
subprocess.call([os.path.expanduser('~/.config/qtile/mic_led.sh'), "1"])
self.text = ''
else:
if self.volume == -1: