summaryrefslogtreecommitdiff
path: root/modules/bar/popouts
diff options
context:
space:
mode:
authorBelal <belalkoko00@gmail.com>2025-09-03 12:56:50 +0300
committerGitHub <noreply@github.com>2025-09-03 19:56:50 +1000
commit04d867b1499974de007ccbb7e33c238671e0347f (patch)
treeff9a41258711dfa13e45b62caba41b70a06f25a7 /modules/bar/popouts
parentfiledialog: anim empty text (diff)
downloadcaelestia-shell-04d867b1499974de007ccbb7e33c238671e0347f.tar.gz
caelestia-shell-04d867b1499974de007ccbb7e33c238671e0347f.tar.bz2
caelestia-shell-04d867b1499974de007ccbb7e33c238671e0347f.zip
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>
Diffstat (limited to 'modules/bar/popouts')
-rw-r--r--modules/bar/popouts/Content.qml5
-rw-r--r--modules/bar/popouts/LockStatus.qml16
2 files changed, 21 insertions, 0 deletions
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")
+ }
+}