fix: persists config after reboots

This commit is contained in:
felixzsh
2026-08-17 17:56:49 -05:00
parent f4564110f7
commit 2ee5f88933
2 changed files with 6 additions and 8 deletions
+3 -4
View File
@@ -96,10 +96,9 @@ Item {
// display is frozen (keys are ignored). The bar button writes/removes the
// file; both sides watch it, so a click on any monitor updates all of them.
property bool paused: false
readonly property string pausePath: {
var runtime = Quickshell.env("XDG_RUNTIME_DIR")
return (runtime && runtime.length > 0 ? runtime : "/tmp") + "/omarchy-key-visualizer.paused"
}
// Persisted next to the config so the pause state survives restarts
// (the runtime dir is wiped on reboot).
readonly property string pausePath: Quickshell.env("HOME") + "/.config/omarchy/key-visualizer.paused"
// ------------------------------------------------------------- layout
+3 -4
View File
@@ -35,10 +35,9 @@ Panel {
// code on any file change under ~/.config/omarchy/plugins/), so editing it
// updates the display live instead of restarting the plugin.
readonly property string configPath: Quickshell.env("HOME") + "/.config/omarchy/key-visualizer.json"
readonly property string pausePath: {
var runtime = Quickshell.env("XDG_RUNTIME_DIR")
return (runtime && runtime.length > 0 ? runtime : "/tmp") + "/omarchy-key-visualizer.paused"
}
// Persisted next to the config so the pause state survives restarts
// (the runtime dir is wiped on reboot).
readonly property string pausePath: Quickshell.env("HOME") + "/.config/omarchy/key-visualizer.paused"
// ------------------------------------------------------------- pause