added adaptive quickshell

This commit is contained in:
wt committed 2026-11-17 18:15:16 +07:00
1 parent 6eb56d2065
commit 5b33a73fd8
189 files changed
+8678 -15

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
"""Explicitly injected by tst_power.qml; never selected by production configuration."""
import json
import sys
import time
mode, action = sys.argv[1:]
if mode == 'stall': time.sleep(5)
if mode == 'malformed':
print('not json')
sys.exit(0)
if action == 'capabilities':
print(json.dumps({'ok': True, 'capabilities': {name: {'state': 'no' if mode == 'denied' else 'yes'}
for name in ['lock', 'logout', 'suspend', 'reboot', 'poweroff']}}))
elif mode == 'failure':
print(json.dumps({'ok': False, 'error': 'Mock authorization denied'}))
sys.exit(1)
else:
print(json.dumps({'ok': True}))