summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 22:59:45 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 22:59:45 +1000
commita3ca244c15056377ec33a3180ff9db881fe77c35 (patch)
treeabc76733e96269de887d4213295e891d05b1d4a6 /modules/bar
parentinternal: fix busyindicator & switch (diff)
downloadcaelestia-shell-a3ca244c15056377ec33a3180ff9db881fe77c35.tar.gz
caelestia-shell-a3ca244c15056377ec33a3180ff9db881fe77c35.tar.bz2
caelestia-shell-a3ca244c15056377ec33a3180ff9db881fe77c35.zip
bar: add kb layout status icon
Closes #280
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/components/StatusIcons.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml
index 45f943e..692f48f 100644
--- a/modules/bar/components/StatusIcons.qml
+++ b/modules/bar/components/StatusIcons.qml
@@ -63,6 +63,23 @@ Item {
}
}
+ // Keyboard layout icon
+ Loader {
+ id: kbLayout
+
+ Layout.alignment: Qt.AlignHCenter
+ asynchronous: true
+ active: Config.bar.status.showKbLayout
+ visible: active
+
+ sourceComponent: StyledText {
+ animate: true
+ text: Hyprland.kbLayout
+ color: root.colour
+ font.family: Appearance.font.family.mono
+ }
+ }
+
// Network icon
Loader {
id: networkIcon