Turns off animations, blur, shadows and HyprGlass, switches to the performance power profile and turns on Do Not Disturb, each optional in Settings > Power. The helper journals the values it changes per Hyprland session and restores them exactly, also after a shell crash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52 lines
1.4 KiB
QML
52 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import "../controls"
|
|
import "../../controlcenter/modules" as Modules
|
|
import "../../services"
|
|
|
|
SettingsPage {
|
|
Modules.Power {
|
|
Layout.fillWidth: true
|
|
}
|
|
Modules.Profiles {
|
|
Layout.fillWidth: true
|
|
}
|
|
SettingsSection {
|
|
title: "Game Mode"
|
|
description: "What the Control Center's Game Mode tile changes while it is on"
|
|
PreferenceToggle {
|
|
label: "Turn off animations, blur, shadows and glass"
|
|
icon: ""
|
|
setting: "gameMode.effects"
|
|
}
|
|
PreferenceToggle {
|
|
label: "Performance power profile"
|
|
description: "Back to the previous profile afterwards"
|
|
icon: ""
|
|
setting: "gameMode.performance"
|
|
}
|
|
PreferenceToggle {
|
|
label: "Do Not Disturb"
|
|
description: "Built-in notifications only"
|
|
icon: ""
|
|
setting: "gameMode.doNotDisturb"
|
|
}
|
|
}
|
|
SettingNote {
|
|
warning: true
|
|
text: GameModeService.error
|
|
}
|
|
SettingsSection {
|
|
title: "Lock screen"
|
|
padded: true
|
|
CommandPreference {
|
|
label: "Lock command arguments (empty = detected existing locker)"
|
|
setting: "system.power.lockCommand"
|
|
}
|
|
}
|
|
SettingNote {
|
|
warning: true
|
|
text: SystemService.error
|
|
}
|
|
}
|