fix(osd): show OSD at 100% via fabric-cli exec from keybinds
- Add osd_show_audio/osd_show_brightness methods on OSDWindow - Register as standalone functions in __main__ for fabric-cli exec - Keybinds now chain fabric-cli exec after wpctl/brightnessctl - Emit brightness signal on threshold bypass for small changes
This commit is contained in:
4 files changed
+38
-5
No files matched your search
+11
-5
@@ -68,10 +68,16 @@ class OSDWindow(Window):
|
||||
self.osd = OSD(window=self)
|
||||
self.add(self.osd)
|
||||
|
||||
def osd_show_audio(self):
|
||||
from services.config import get_config
|
||||
|
||||
if __name__ == "__main__":
|
||||
from fabric import Application
|
||||
if not get_config("osd", True):
|
||||
return
|
||||
self.osd.containers["audio"].update()
|
||||
|
||||
osd_window = OSDWindow()
|
||||
app = Application("modus-osd", osd_window)
|
||||
app.run()
|
||||
def osd_show_brightness(self):
|
||||
from services.config import get_config
|
||||
|
||||
if not get_config("osd", True):
|
||||
return
|
||||
self.osd.containers["brightness"].update()
|
||||
Reference in new issue
Block a user