Compare commits

..

No commits in common. "01c2ea90445d7c48c8e79fb871be55be216fff7e" and "a10c2f02540b6ffa30cb0dfcab0084c9424bafde" have entirely different histories.

2 changed files with 12 additions and 8 deletions

View file

@ -12,11 +12,13 @@ Run the shell
quickshell -c shell quickshell -c shell
``` ```
Run app launcher
```shell
quickshell -c launcher
```
## Dependencies ## Dependencies
- `quickshell` - `quickshell`
- `qt6-wayland`
- `app2unit` - `app2unit`
- `meson`
- `ninja`
- `python3`

View file

@ -1,7 +1,7 @@
pragma Singleton pragma Singleton
import Quickshell import Quickshell
import Quickshell.Wayland import Quickshell.Io
Singleton { Singleton {
@ -16,14 +16,16 @@ Singleton {
function toggle() { function toggle() {
if (properties.enabled) { if (properties.enabled) {
process.signal(888);
properties.enabled = false; properties.enabled = false;
} else { } else {
properties.enabled = true; properties.enabled = true;
} }
} }
IdleInhibitor { Process {
id: inhibitor id: process
enabled: properties.enabled running: properties.enabled
command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why='Caffeine module is active' --mode=block sleep inf"]
} }
} }