summaryrefslogtreecommitdiff
path: root/accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-09-23 21:08:35 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-09-23 21:08:35 +0200
commitae9a80c1f012686c1f65fce7ce76fdd1b77b0b71 (patch)
tree141f738276cf84c6b7e5633c2bd5f2b44e9b0b75 /accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml
parent6a763272038e637a8a03dd9059d43a1ff44921dd (diff)
downloadnixos-ae9a80c1f012686c1f65fce7ce76fdd1b77b0b71.tar
nixos-ae9a80c1f012686c1f65fce7ce76fdd1b77b0b71.tar.gz
nixos-ae9a80c1f012686c1f65fce7ce76fdd1b77b0b71.tar.bz2
nixos-ae9a80c1f012686c1f65fce7ce76fdd1b77b0b71.tar.xz
nixos-ae9a80c1f012686c1f65fce7ce76fdd1b77b0b71.zip
...
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml')
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml b/accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml
new file mode 100644
index 00000000..60202a29
--- /dev/null
+++ b/accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml
@@ -0,0 +1,23 @@
1pragma Singleton
2
3import Quickshell
4import Custom as Custom
5
6Singleton {
7 id: inhibitorState
8
9 property bool waylandIdleInhibited: false
10 property alias lidSwitchInhibited: lidSwitchInhibitor.enabled
11 property bool lockscreenInhibited: false
12
13 Custom.SystemdInhibitor {
14 id: lidSwitchInhibitor
15
16 enabled: false
17
18 what: Custom.SystemdInhibitorParams.HandleLidSwitch
19 who: "quickshell"
20 why: "User request"
21 mode: Custom.SystemdInhibitorParams.BlockWeak
22 }
23}