app: monitor scheme file
This commit is contained in:
parent
ece09fbb51
commit
d9d12acb58
1 changed files with 2 additions and 1 deletions
3
app.tsx
3
app.tsx
|
|
@ -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 />;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue