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>
9 lines
372 B
Python
9 lines
372 B
Python
#!/usr/bin/env python3
|
|
"""Test-only Game Mode adapter. Records requests; never calls hyprctl or D-Bus."""
|
|
import json,os,sys
|
|
from pathlib import Path
|
|
base=Path(os.environ['GLASSMXRPH_SYSTEM_EVENTS']).with_suffix('.gamemode')
|
|
req=json.loads(sys.argv[1])
|
|
with base.open('a') as f:f.write(json.dumps(req)+'\n')
|
|
print(json.dumps({'ok':True,'active':req.get('action')=='on'}))
|