fix: display "Desktop" instead of nothing when no client
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user