Add AGS notification, quick settings, and sysmonitor widgets
This commit is contained in:
1 parent
91d8d5f84b
commit
1fe518ff2b
8 files changed
+1141
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import app from "ags/gtk3/app"
|
||||
import { execAsync } from "ags/process"
|
||||
|
||||
export function sh(command: string) {
|
||||
return execAsync(["bash", "-c", command]).catch((error) => {
|
||||
console.error(error)
|
||||
return ""
|
||||
})
|
||||
}
|
||||
|
||||
export function shell(command: string): string[] {
|
||||
return ["bash", "-c", command]
|
||||
}
|
||||
|
||||
export function toggleWindow(name: string) {
|
||||
app.toggle_window(name)
|
||||
}
|
||||
Reference in new issue
Block a user