ags: add ask popup, make notifications work(finally :3) and more improvements

This commit is contained in:
retrozinndev
2025-03-09 13:45:07 -03:00
parent 161c811841
commit 59ef5e4aa7
67 changed files with 2005 additions and 731 deletions
+19
View File
@@ -0,0 +1,19 @@
import { execAsync, GLib } from "astal";
export function getUserDirs() {
return {
home: GLib.getenv("HOME"),
state: GLib.getenv("XDG_STATE_HOME"),
cache: GLib.getenv("XDG_CACHE_HOME"),
config: GLib.getenv("XDG_CONFIG_HOME"),
data: GLib.getenv("XDG_DATA_HOME")
};
}
export function makeDirectory(dir: string): void {
execAsync([ "mkdir", "-p", dir ]);
}
export function deleteFile(path: string): void {
execAsync([ "rm", "-r", path ]);
}