From 7aacac554d51b05ae3adc7420d53258ec10f733d Mon Sep 17 00:00:00 2001 From: Nyx <189459385+nyx-4@users.noreply.github.com> Date: Sat, 16 Aug 2025 18:25:52 +0500 Subject: [PATCH 1/3] [Feature Request] Add `mantra' beneath clock Signed-off-by: Nyx <189459385+nyx-4@users.noreply.github.com> --- .../ii/modules/background/Background.qml | 14 ++++++++++++++ .config/quickshell/ii/modules/common/Config.qml | 1 + 2 files changed, 15 insertions(+) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 1e3ac5200..2850249e3 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -242,6 +242,20 @@ Variants { styleColor: Appearance.colors.colShadow text: DateTime.date } + StyledText { + Layout.fillWidth: true + Layout.topMargin: -5 + horizontalAlignment: bgRoot.textHorizontalAlignment + font { + family: Appearance.font.family.expressive + pixelSize: 20 + weight: Font.DemiBold + } + color: bgRoot.colText + style: Text.Raised + styleColor: Appearance.colors.colShadow + text: Config.options.background.mantra + } } RowLayout { diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 464fe9c4a..7f874602c 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -126,6 +126,7 @@ Singleton { property real workspaceZoom: 1.07 // Relative to your screen, not wallpaper size property bool enableSidebar: true } + property string mantra: "" } property JsonObject bar: JsonObject { From d1e66c444192644f95146ee3da3c0f9518c2dd8b Mon Sep 17 00:00:00 2001 From: Nyx <189459385+nyx-4@users.noreply.github.com> Date: Sat, 16 Aug 2025 20:16:38 +0500 Subject: [PATCH 2/3] It's 9/11, where yo planes at? Signed-off-by: Nyx <189459385+nyx-4@users.noreply.github.com> --- .config/quickshell/ii/modules/background/Background.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 2850249e3..32fa00b1c 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -243,8 +243,6 @@ Variants { text: DateTime.date } StyledText { - Layout.fillWidth: true - Layout.topMargin: -5 horizontalAlignment: bgRoot.textHorizontalAlignment font { family: Appearance.font.family.expressive @@ -253,6 +251,9 @@ Variants { } color: bgRoot.colText style: Text.Raised + visible: { + return (Config.options.background.mantra !== "") + } styleColor: Appearance.colors.colShadow text: Config.options.background.mantra } From ad323f788515628b456c33f685dad03826cae963 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 17 Aug 2025 06:21:23 +0200 Subject: [PATCH 3/3] remove redundant return --- .config/quickshell/ii/modules/background/Background.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 32fa00b1c..c92ca2765 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -251,9 +251,7 @@ Variants { } color: bgRoot.colText style: Text.Raised - visible: { - return (Config.options.background.mantra !== "") - } + visible: Config.options.background.mantra !== "" styleColor: Appearance.colors.colShadow text: Config.options.background.mantra }