From fbc2a10b6968d00c37f0bd6589cdd32a19dc2ab9 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 9 Sep 2025 23:16:20 -0400 Subject: [PATCH 1/2] use quickshell idle inhib --- services/Caffeine.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/services/Caffeine.qml b/services/Caffeine.qml index 04680b0..f4acebb 100644 --- a/services/Caffeine.qml +++ b/services/Caffeine.qml @@ -1,7 +1,7 @@ pragma Singleton import Quickshell -import Quickshell.Io +import Quickshell.Wayland Singleton { @@ -16,16 +16,14 @@ Singleton { function toggle() { if (properties.enabled) { - process.signal(888); properties.enabled = false; } else { properties.enabled = true; } } - Process { - id: process - running: properties.enabled - command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why='Caffeine module is active' --mode=block sleep inf"] + IdleInhibitor { + id: inhibitor + enabled: properties.enabled } } From 01c2ea90445d7c48c8e79fb871be55be216fff7e Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Wed, 10 Sep 2025 12:02:37 -0400 Subject: [PATCH 2/2] add new dependencies --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8faca34..1214637 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,11 @@ Run the shell quickshell -c shell ``` -Run app launcher - -```shell -quickshell -c launcher -``` - ## Dependencies - `quickshell` +- `qt6-wayland` - `app2unit` +- `meson` +- `ninja` +- `python3`