summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Services/InhibitorState.qml
blob: fe48fd7f073b3a1139bbf483d80a5051934ef7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pragma Singleton

import Quickshell
import Custom as Custom

Singleton {
  id: inhibitorState

  property bool waylandIdleInhibited: false
  property alias lidSwitchInhibited: lidSwitchInhibitor.enabled

  Custom.SystemdInhibitor {
    id: lidSwitchInhibitor

    enabled: false

    what: Custom.SystemdInhibitorParams.HandleLidSwitch
    who: "quickshell"
    why: "User request"
    mode: Custom.SystemdInhibitorParams.BlockWeak
  }
}