Compare commits
2 commits
a10c2f0254
...
01c2ea9044
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01c2ea9044 | ||
|
|
fbc2a10b69 |
2 changed files with 8 additions and 12 deletions
10
README.md
10
README.md
|
|
@ -12,13 +12,11 @@ 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`
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
pragma Singleton
|
pragma Singleton
|
||||||
|
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Wayland
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
|
|
||||||
|
|
@ -16,16 +16,14 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
IdleInhibitor {
|
||||||
id: process
|
id: inhibitor
|
||||||
running: properties.enabled
|
enabled: properties.enabled
|
||||||
command: ["sh", "-c", "systemd-inhibit --what=idle --who=Caffeine --why='Caffeine module is active' --mode=block sleep inf"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue