lid behavior watcher to lock session #115

Merged
zach merged 25 commits from lid-switch-behavior into main 2026-06-03 18:02:21 +02:00
4 changed files with 13 additions and 0 deletions
Showing only changes of commit 83cf008a19 - Show all commits
+1
View File
@@ -196,6 +196,7 @@ Singleton {
wallpaperPath: general.wallpaperPath,
desktopIcons: general.desktopIcons,
dateFormat: general.dateFormat,
lidWatch: general.lidWatch,
color: {
mode: general.color.mode,
smart: general.color.smart,
+1
View File
@@ -10,6 +10,7 @@ JsonObject {
}
property string dateFormat: "ddd d MMM - hh:mm:ss"
property bool desktopIcons: false
property bool lidWatch: true
property Idle idle: Idle {
}
property string logo: ""
@@ -59,6 +59,15 @@ SettingsPage {
Separator {
}
SettingSwitch {
name: "Lid watch"
object: Config.general
setting: "lidWatch"
}
Separator {
}
SettingSpinBox {
min: 0
name: "Blur amount"
+2
View File
@@ -14,6 +14,7 @@ import qs.Modules.Wallpaper
import qs.Modules.Lock
import qs.Drawers
import qs.Helpers
import qs.Config
import qs.Modules.Polkit
import qs.Daemons
@@ -38,6 +39,7 @@ ShellRoot {
}
Connections {
enabled: Config.general.lidWatch
function onLidClosing(): void {
lock.lock.locked = true;
}