fixed mic mute led
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user