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:
mxandClaude Opus 5.5 committed 2026-10-17 22:13:48 +02:00
1 parent 9e1ac4efe7
commit bfbfc8961e
15 files changed
+325 -1

No files matched your search

+2
View File
@@ -104,3 +104,5 @@ assert.equal(settings.dropModule(modules,'a','right','').find(m=>m.id==='a').cus
assert.throws(()=>api.load(defaults,{hyprglass:{values:{blur_iterations:2.5}}}));
assert.throws(()=>api.load(defaults,{hyprglass:{values:{refraction_strength:99}}}));
console.log('Drag/drop preserves module options and validates global glass preferences.');
assert.equal(loaded.gameMode.effects,true);assert.equal(api.update(loaded,'gameMode.performance',false).gameMode.performance,false);for(const v of ['yes',1,null])assert.throws(()=>api.update(loaded,'gameMode.effects',v),/Game Mode/);
console.log('Game Mode preferences validate.');