summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-10 19:06:50 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-10 19:06:50 +1000
commit7a0c4fe6b43d87b069f7ac218374227778f564bb (patch)
treeeb065779f43e59f3e5803a81a15b334ec6d70053 /src
parentconfig: limit news param types (diff)
downloadcaelestia-shell-7a0c4fe6b43d87b069f7ac218374227778f564bb.tar.gz
caelestia-shell-7a0c4fe6b43d87b069f7ac218374227778f564bb.tar.bz2
caelestia-shell-7a0c4fe6b43d87b069f7ac218374227778f564bb.zip
sidebar: dashboard current desktop -> date
Put date instead of current desktop on dashboard Date is more useful imo (especially for vertical bar)
Diffstat (limited to 'src')
-rw-r--r--src/modules/sidebar/dashboard.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/sidebar/dashboard.tsx b/src/modules/sidebar/dashboard.tsx
index e445029..df7be2b 100644
--- a/src/modules/sidebar/dashboard.tsx
+++ b/src/modules/sidebar/dashboard.tsx
@@ -1,5 +1,5 @@
import Players from "@/services/players";
-import { osIcon, osId } from "@/utils/system";
+import { bindCurrentTime, osIcon } from "@/utils/system";
import Slider from "@/widgets/slider";
import { bind, GLib, monitorFile, Variable } from "astal";
import { Gtk } from "astal/gtk3";
@@ -52,9 +52,9 @@ const User = () => {
{bind(hasFace).as(h => (h ? <box visible={false} /> : <FaceFallback />))}
</box>
<box vertical hexpand valign={Gtk.Align.CENTER} className="details">
- <label xalign={0} className="name" label={`${osIcon} ${GLib.get_user_name()}`} />
- <label xalign={0} label={(GLib.getenv("XDG_CURRENT_DESKTOP") ?? osId).toUpperCase()} />
- <label truncate xalign={0} className="uptime" label={bind(uptime)} onDestroy={() => uptime.drop()} />
+ <label truncate xalign={0} className="name" label={`${osIcon} ${GLib.get_user_name()}`} />
+ <label truncate xalign={0} label={bind(uptime)} onDestroy={() => uptime.drop()} />
+ <label truncate xalign={0} label={bindCurrentTime("%A, %e %B")} />
</box>
</box>
);