refactor: remove CapsLockOSDContainer and KeyboardLayoutOSDContainer, and related show methods

This commit is contained in:
sankalp committed 2026-07-05 22:24:58 +05:45
1 parent 9fc6f95157
commit c19b993b2a
2 files changed
-12

No files matched your search

-2
View File
@@ -3,6 +3,4 @@ from .components import ( # noqa: F401
AudioOSDContainer,
BrightnessOSDContainer,
MicrophoneOSDContainer,
CapsLockOSDContainer,
KeyboardLayoutOSDContainer,
)
-10
View File
@@ -5,8 +5,6 @@ from fabric.widgets.wayland import WaylandWindow as Window
from .components import (
AudioOSDContainer,
BrightnessOSDContainer,
CapsLockOSDContainer,
KeyboardLayoutOSDContainer,
MicrophoneOSDContainer,
)
@@ -27,8 +25,6 @@ class OSD(Box):
"audio": AudioOSDContainer(window),
"brightness": BrightnessOSDContainer(window),
"microphone": MicrophoneOSDContainer(window),
"capslock": CapsLockOSDContainer(window),
"kb_layout": KeyboardLayoutOSDContainer(window),
}
# Set the OSD reference in containers
@@ -52,12 +48,6 @@ class OSD(Box):
def show_microphone_osd(self):
self.show_container(self.containers.get("microphone"))
def show_capslock_osd(self):
self.show_container(self.containers.get("capslock"))
def show_kb_layout_osd(self):
self.show_container(self.containers.get("kb_layout"))
class OSDWindow(Window):
def __init__(self, **kwargs):