diff options
| author | Belal <belalkoko00@gmail.com> | 2025-09-03 12:56:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 19:56:50 +1000 |
| commit | 04d867b1499974de007ccbb7e33c238671e0347f (patch) | |
| tree | ff9a41258711dfa13e45b62caba41b70a06f25a7 /modules/bar/popouts | |
| parent | filedialog: anim empty text (diff) | |
| download | caelestia-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.qml | 5 | ||||
| -rw-r--r-- | modules/bar/popouts/LockStatus.qml | 16 |
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") + } +} |