fix: persists config after reboots
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user