diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 15:02:50 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-18 15:02:50 +1100 |
| commit | d9d12acb58e2b97deb8c7a657aee829ac0593d39 (patch) | |
| tree | b3c987fd51492a42f79caab81a652c99663e2f1c | |
| parent | bar: change style + fix scheme (diff) | |
| download | caelestia-shell-d9d12acb58e2b97deb8c7a657aee829ac0593d39.tar.gz caelestia-shell-d9d12acb58e2b97deb8c7a657aee829ac0593d39.tar.bz2 caelestia-shell-d9d12acb58e2b97deb8c7a657aee829ac0593d39.zip | |
app: monitor scheme file
| -rw-r--r-- | app.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -import { execAsync, GLib, readFileAsync, writeFileAsync } from "astal"; +import { execAsync, GLib, monitorFile, readFileAsync, writeFileAsync } from "astal"; import { App } from "astal/gtk3"; import Bar from "./src/modules/bar"; import Launcher from "./src/modules/launcher"; @@ -25,6 +25,7 @@ App.start({ main() { const now = Date.now(); loadStyleAsync().catch(console.error); + monitorFile(`${CACHE}/scheme/current.txt`, () => loadStyleAsync().catch(console.error)); <Launcher />; <NotifPopups />; |