fix: display "Desktop" instead of nothing when no client

This commit is contained in:
2025-12-06 13:47:06 -08:00
parent 11c257e4b3
commit d8b4e953c5
2 changed files with 1 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ import AstalHyprland from "gi://AstalHyprland?version=0.1";
const hyprland = AstalHyprland.get_default()
function get_title() {
return hyprland.focusedClient?.title ?? ""
return hyprland.focusedClient?.title ?? "Desktop"
}
export default function Title() {