Open wallpaper picker from launcher, apply on click, move media bar options to module cog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e71ce9c0a4
commit
2e80ef1181
10 files changed
+49
-79
No files matched your search
@@ -114,13 +114,17 @@ 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'},'all commands registered')
|
||||
time.sleep(.3);assert ipc('launcherTest','screenshot',str(ROOT/'.cache/launcher-preview.png'))
|
||||
for text,page in [('>metrics','metrics'),('>wall','wallpaper'),('>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')]:
|
||||
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)
|
||||
eventually(lambda:ipc('shell','status')['settingsOpen'] and ipc('shell','status')['settingsPage']==page,'command destination '+page)
|
||||
assert not snapshot()['opened']
|
||||
open_launcher()
|
||||
assert not ipc('shell','status')['settingsOpen']
|
||||
# >wallpaper opens the picker, not its settings page.
|
||||
query('>wall');ipc('launcherTest','key',ENTER)
|
||||
eventually(lambda:ipc('shell','status')['wallpaperPickerOpen'] and not ipc('shell','status')['settingsOpen'],'wallpaper command opens picker')
|
||||
ipc('shell','close');open_launcher()
|
||||
query('>command-that-does-not-exist')
|
||||
assert not snapshot()['results']
|
||||
ipc('launcherTest','key',ENTER);assert snapshot()['opened']
|
||||
|
||||
Reference in new issue
Block a user