Merged color fix
This commit is contained in:
commit
a65fa79bc3
2 files changed
+16
-2
No files matched your search
@@ -1,13 +1,27 @@
|
|||||||
import app from "ags/gtk4/app"
|
import app from "ags/gtk4/app"
|
||||||
import style from "./style.scss"
|
import { exec } from "ags/process"
|
||||||
|
import GLib from "gi://GLib?version=2.0"
|
||||||
import Bar from "./widget/Bar"
|
import Bar from "./widget/Bar"
|
||||||
import PowerMenu from "./widget/PowerMenu"
|
import PowerMenu from "./widget/PowerMenu"
|
||||||
import { initThemeSync, restoreTheme } from "./theme"
|
import { initThemeSync, restoreTheme } from "./theme"
|
||||||
|
|
||||||
initThemeSync()
|
initThemeSync()
|
||||||
|
|
||||||
|
const HOME = GLib.getenv("HOME") || ""
|
||||||
|
const colorsPath = `${HOME}/.cache/wal/colors.scss`
|
||||||
|
|
||||||
|
if (!GLib.file_test(colorsPath, GLib.FileTest.EXISTS)) {
|
||||||
|
console.log("No pywal colors found, generating default from pywal.png...")
|
||||||
|
const agsDir = `${HOME}/.config/ags`
|
||||||
|
exec(`wal -q -n -i ${agsDir}/pywal.png`)
|
||||||
|
}
|
||||||
|
|
||||||
|
const scss = `${HOME}/.config/ags/style.scss`
|
||||||
|
const css = `/tmp/ags-compiled-style.css`
|
||||||
|
exec(`sass ${scss} ${css}`)
|
||||||
|
|
||||||
app.start({
|
app.start({
|
||||||
css: style,
|
css: css,
|
||||||
main() {
|
main() {
|
||||||
restoreTheme()
|
restoreTheme()
|
||||||
app.get_monitors().map(Bar)
|
app.get_monitors().map(Bar)
|
||||||
|
|||||||
Reference in new issue
Block a user