Skip to content

Config Object

App.config can be called any number of times, the passed properties will be applied on top of previous calls

config.js
App.config({
style: "./style.css",
icons: "./assets",
windows: [
// Array<Gtk.Window>
],
gtkTheme: "Adwaita-dark",
cursorTheme: "Qogir",
iconTheme: "MoreWaita",
closeWindowDelay: {
"window-name": 500, // milliseconds
},
onConfigParsed: function() {
// code that runs after this object is loaded
},
onWindowToggled: function (windowName, visible) {
print(`${windowName} is ${visible}`)
},
});
FieldTypeDescription
stylestringPath to a css file.
iconsstringIcon directory to append to Gtk.IconTheme.
windowsArray<Gtk.Window>List of Windows.
gtkThemestringName of the base GTK3 theme.
cursorThemestringName of a cursor theme. Useful for greetd greeters.
iconThemestringName of an icon theme.
closeWindowDelayRecord<string, number>Delays the closing of a window, this is useful for making animations with a revealer
onConfigParsed(app: App) => voidCallback to execute after all user modules were resolved.
onWindowToggled(windowName: string, visible: boolean) => voidCallback to execute when a window is toggled.