It might be possible using this, though I'm not sure what 'only works in GUI' exactly means
https://manual.calibre-ebook.com/gen...orage-location
I'd try something like
Code:
program: '(Kobo Libra H2O|Kobo Aura HD)' in connected_device_name('main')
Alternately, connected_device_uuid if you have multiples of the same device.