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

import Quickshell
import Custom as Custom

Singleton {
  id: inhibitorState

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

  Custom.SystemdInhibitor {
    id: lidSwitchInhibitor

    enabled: false

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