feat(theme): sync shell palette with greetd greeter

- Export compiled greeter CSS and wallpaper to /var/tmp for the greeter user.

- Serialize theme changes so rapid switches cannot race wal and sass.

- Avoid duplicate greeter export on startup and disable sass source maps.

- Pass command arguments as arrays and use forEach when creating windows.
This commit is contained in:
pascalyazid committed 2026-11-27 18:55:33 +01:00
1 parent 628ebb13ba
commit 8aea20ea9f
2 files changed
+71 -10

No files matched your search

+4 -4
View File
@@ -12,18 +12,18 @@ const colorsPath = `${HOME}/.cache/wal/colors.scss`
if (!GLib.file_test(colorsPath, GLib.FileTest.EXISTS)) {
const agsDir = `${HOME}/.config/ags`
exec(`wal -q -n -i ${agsDir}/pywal.jpg`)
exec(["wal", "-q", "-n", "-i", `${agsDir}/pywal.jpg`])
}
const scss = `${HOME}/.config/ags/style.scss`
const css = `/tmp/ags-compiled-style.css`
exec(`sass ${scss} ${css}`)
exec(["sass", "--no-source-map", scss, css])
app.start({
css: css,
main() {
restoreTheme()
app.get_monitors().map(Bar)
app.get_monitors().map(PowerMenu)
app.get_monitors().forEach(Bar)
app.get_monitors().forEach(PowerMenu)
},
})