From 04d867b1499974de007ccbb7e33c238671e0347f Mon Sep 17 00:00:00 2001 From: Belal Date: Wed, 3 Sep 2025 12:56:50 +0300 Subject: bar/statusicons: add lock keys indicator (#514) * [StatusIcons] Add caps lock indicator * Seprate CapsLock icon * Use material icon * fixes --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> --- modules/bar/popouts/Content.qml | 5 +++++ modules/bar/popouts/LockStatus.qml | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 modules/bar/popouts/LockStatus.qml (limited to 'modules/bar/popouts') diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index f197e20..297c2ba 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -58,6 +58,11 @@ Item { source: "KbLayout.qml" } + Popout { + name: "lockstatus" + source: "LockStatus.qml" + } + Repeater { model: ScriptModel { values: [...SystemTray.items.values] diff --git a/modules/bar/popouts/LockStatus.qml b/modules/bar/popouts/LockStatus.qml new file mode 100644 index 0000000..7d74530 --- /dev/null +++ b/modules/bar/popouts/LockStatus.qml @@ -0,0 +1,16 @@ +import qs.components +import qs.services +import qs.config +import QtQuick.Layouts + +ColumnLayout { + spacing: Appearance.spacing.small + + StyledText { + text: qsTr("Capslock: %1").arg(Hypr.capsLock ? "Enabled" : "Disabled") + } + + StyledText { + text: qsTr("Numlock: %1").arg(Hypr.numLock ? "Enabled" : "Disabled") + } +} -- cgit v1.2.3-freya