Add a manual Game Mode Control Center tile
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>
This commit is contained in:
1 parent
9e1ac4efe7
commit
bfbfc8961e
15 files changed
+325
-1
No files matched your search
@@ -100,6 +100,13 @@ Singleton {
|
||||
h: 1,
|
||||
source: Qt.resolvedUrl("modules/Caffeine.qml")
|
||||
},
|
||||
gameMode: {
|
||||
title: "Game Mode",
|
||||
glyph: "",
|
||||
w: 2,
|
||||
h: 1,
|
||||
source: Qt.resolvedUrl("modules/GameMode.qml")
|
||||
},
|
||||
profiles: {
|
||||
title: "Power profile",
|
||||
glyph: "",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import ".."
|
||||
import "../../services"
|
||||
|
||||
// Game Mode switch; right click opens its options in Settings → Power.
|
||||
CCTile {
|
||||
objectName: "gameModeToggle"
|
||||
title: "Game Mode"
|
||||
detail: GameModeService.error ? GameModeService.error : GameModeService.active ? "On" : "Off"
|
||||
page: "power"
|
||||
glyph: ""
|
||||
fallback: "G"
|
||||
checked: GameModeService.active
|
||||
onClicked: GameModeService.toggle()
|
||||
}
|
||||
Reference in new issue
Block a user