summaryrefslogtreecommitdiff
path: root/gjs/src/application.ts
diff options
context:
space:
mode:
Diffstat (limited to 'gjs/src/application.ts')
-rw-r--r--gjs/src/application.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/gjs/src/application.ts b/gjs/src/application.ts
index 13927d8..0ba247e 100644
--- a/gjs/src/application.ts
+++ b/gjs/src/application.ts
@@ -5,6 +5,7 @@ type RequestHandler = {
}
type Config = Partial<{
+ icons: string
instanceName: string
gtkTheme: string
iconTheme: string
@@ -64,7 +65,7 @@ class AstalJS extends Astal.Application {
exit(code ?? 0)
}
- start({ requestHandler, css, hold, main, client, ...cfg }: Config = {}) {
+ start({ requestHandler, css, hold, main, client, icons, ...cfg }: Config = {}) {
client ??= () => {
print(`Astal instance "${this.instanceName}" already running`)
exit(1)
@@ -90,6 +91,9 @@ class AstalJS extends Astal.Application {
if (css)
this.apply_css(css, false)
+ if (icons)
+ this.add_icons(icons)
+
hold ??= true
if (hold)
this.hold()