summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-11 23:17:57 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-11 23:17:57 +0200
commit564853110a6e1367cc379bd8418d874829302d00 (patch)
treea6d548f7ae9379810f6d3942b10217364ca54c99 /accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml
parentdd2df931a3be1a6518c1e9fbff438de4274456cd (diff)
downloadnixos-564853110a6e1367cc379bd8418d874829302d00.tar
nixos-564853110a6e1367cc379bd8418d874829302d00.tar.gz
nixos-564853110a6e1367cc379bd8418d874829302d00.tar.bz2
nixos-564853110a6e1367cc379bd8418d874829302d00.tar.xz
nixos-564853110a6e1367cc379bd8418d874829302d00.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml b/accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml
new file mode 100644
index 00000000..fe48fd7f
--- /dev/null
+++ b/accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml
@@ -0,0 +1,22 @@
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
12 Custom.SystemdInhibitor {
13 id: lidSwitchInhibitor
14
15 enabled: false
16
17 what: Custom.SystemdInhibitorParams.HandleLidSwitch
18 who: "quickshell"
19 why: "User request"
20 mode: Custom.SystemdInhibitorParams.BlockWeak
21 }
22}