Merge branch 'retrozinndev:ryo' into ryo

This commit is contained in:
Mephisto
2025-06-17 20:22:54 +03:00
committed by GitHub
4 changed files with 18 additions and 10 deletions
+4 -2
View File
@@ -5,9 +5,11 @@ import AstalHyprland from "gi://AstalHyprland";
import { execAsync } from "astal";
export const uwsmIsActive: boolean = await execAsync(
"uwsm check is-active hyprland-uwsm.desktop"
).then(() => true).catch(() => false);
const astalApps: AstalApps.Apps = new AstalApps.Apps();
const uwsmIsActive: boolean = await execAsync("uwsm check is-active").then((stdout) =>
/hyprland/gi.test(stdout)).catch(() => false);
let appsList: Array<AstalApps.Application> = astalApps.get_list();
export function getApps(): Array<AstalApps.Application> {