diff options
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml')
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell/Services/InhibitorState.qml | 23 |
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 @@ | |||
| 1 | pragma Singleton | ||
| 2 | |||
| 3 | import Quickshell | ||
| 4 | import Custom as Custom | ||
| 5 | |||
| 6 | Singleton { | ||
| 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 | } | ||
