Add Clipboard and Emoji pills beside the launcher bar
Round glass pills to the right of the search bar switch the launcher to Clipboard History or the Emoji picker and back, naming themselves in the empty bar on hover. The launcher runtime test now runs without a second notification server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7f1189606c
commit
9e1ac4efe7
3 files changed
+95
-3
No files matched your search
@@ -61,7 +61,8 @@ Terminal={'true' if suffix=='Terminal' else 'false'}
|
||||
''')
|
||||
cfg=temp/'config/glassMxrph/config.json';cfg.parent.mkdir(parents=True)
|
||||
# Hermetic: never scan the user's wallpaper folders (and their image formats).
|
||||
cfg.write_text(json.dumps({'schemaVersion':3,'dock':{'enabled':False},'wallpaper':{'directories':[str(temp)]}}))
|
||||
# The user's live shell owns the notification bus name; a second server would warn.
|
||||
cfg.write_text(json.dumps({'schemaVersion':3,'dock':{'enabled':False},'notifications':{'enabled':False},'wallpaper':{'directories':[str(temp)]}}))
|
||||
env=dict(os.environ,XDG_CONFIG_HOME=tmp+'/config',XDG_STATE_HOME=tmp+'/state',XDG_DATA_HOME=tmp+'/data',GLASSMXRPH_LAUNCHER_TESTING='1',QT_QPA_PLATFORMTHEME='',QT_NO_XDG_DESKTOP_PORTAL='1')
|
||||
shell=None
|
||||
try:
|
||||
@@ -114,6 +115,13 @@ Terminal={'true' if suffix=='Terminal' else 'false'}
|
||||
open_launcher();query('>')
|
||||
eventually(lambda:{r['id'] for r in snapshot()['results']}=={'about','appearance','audio','bar','tray','bluetooth','controlcenter','display','dock','launcher','media','metrics','network','notifications','power','wallpaper','widgets','osd','lock','dashboard','plugins','clipboard','emoji'},'all commands registered')
|
||||
time.sleep(.3);assert ipc('launcherTest','screenshot',str(ROOT/'.cache/launcher-preview.png'))
|
||||
# Mode pills beside the bar switch to clipboard or emoji and back.
|
||||
assert ipc('launcherTest','pill','clipboard');eventually(lambda:snapshot()['mode']=='clipboard','clipboard pill')
|
||||
assert ipc('launcherTest','pill','clipboard');eventually(lambda:snapshot()['mode']=='apps','clipboard pill toggles back')
|
||||
assert ipc('launcherTest','pill','emoji');eventually(lambda:snapshot()['mode']=='emoji' and snapshot()['opened'],'emoji pill')
|
||||
time.sleep(.4);assert ipc('launcherTest','screenshot',str(ROOT/'.cache/launcher-emoji.png'));assert ipc('launcherTest','pillsShot',str(ROOT/'.cache/launcher-pills.png'))
|
||||
assert ipc('launcherTest','pill','emoji');eventually(lambda:snapshot()['mode']=='apps','emoji pill toggles back')
|
||||
query('>')
|
||||
for text,page in [('>metrics','metrics'),('>dock','dock'),('>media','media'),('>tray','tray'),('>display','displays'),('>launcher','launcher'),('>appearance','appearance'),('>bar','bar'),('>network','network'),('>bluetooth','bluetooth'),('>audio','audio'),('>controlcenter','controlcenter'),('>notifications','notifications'),('>power','power'),('>about','about')]:
|
||||
query(text)
|
||||
ipc('launcherTest','key',ENTER)
|
||||
|
||||
Reference in new issue
Block a user