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

+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Explicit test command, never a production backend mode."""
import json
import sys
import time
mode, action, *args = sys.argv[1:]
if mode == 'stall': time.sleep(10)
if mode == 'malformed':
print('not json', flush=True)
sys.exit(0)
if mode == 'failure':
print(json.dumps({'ok': False, 'error': 'Mock BlueZ NotReady'}), flush=True)
sys.exit(1)
if action == 'status':
print(json.dumps({'ok': True, 'adapterCount': 2}), flush=True)
elif action == 'discover':
print(json.dumps({'ok': True, 'event': 'started'}), flush=True)
time.sleep(10)
else:
print(json.dumps({'ok': True}), flush=True)