diff --git a/README.md b/README.md index 1214637..8faca34 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,13 @@ Run the shell quickshell -c shell ``` +Run app launcher + +```shell +quickshell -c launcher +``` + ## Dependencies - `quickshell` -- `qt6-wayland` - `app2unit` -- `meson` -- `ninja` -- `python3` diff --git a/services/Caffeine.qml b/services/Caffeine.qml index f4acebb..04680b0 100644 --- a/services/Caffeine.qml +++ b/services/Caffeine.qml @@ -1,7 +1,7 @@ pragma Singleton import Quickshell -import Quickshell.Wayland +import Quickshell.Io Singleton { @@ -16,14 +16,16 @@ Singleton { function toggle() { if (properties.enabled) { + process.signal(888); properties.enabled = false; } else { properties.enabled = true; } } - IdleInhibitor { - id: inhibitor - enabled: properties.enabled + Process { + id: process + running: properties.enabled + command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why='Caffeine module is active' --mode=block sleep inf"] } }