Adds Microsoft Spotlight functionality to GNU/Linux distros
README.md | ||
spotlight.sh |
Microsoft Spotlight for GNU/Linux distros
Just set your display manager's login greeter's background to use the image set in this script's WALLPAPER variable (or vice versa) and put the script in the startup :)
E.g.: For lightdm you would have to edit /etc/lightdm/lightdm-gtk-greeter.conf to use /opt/login-background.jpg
About the MS Spotlight API
The Spotlight API is located on the following endpoint:
https://arc.msn.com/v3/Delivery/Cache?pid=209567&fmt=json&rafb=0&ua=WindowsShellClient%2F0&disphorzres=9999&dispvertres=9999&lo=80217&pl=en-US&lc=en-US&ctry=us&time=2017-12-31T23:59:59Z
Where the expected arguments are:
pid
: Purpose currently unknownfmt
: Output format, e.g.json
rafb
: Purpose currently unknownua
: Client user agent stringdisphorzres
: Screen width in pixelsdispvertres
: Screen height in pixelslo
: Purpose currently uknownpl
: Locale, e.g.en-US
lc
: Language, e.g.en-US
ctry
: Country, e.g.us
time
: Time, e.g.2017-12-31T23:59:59Z
The JSON response contains details about 6-7 images including image url, title, sha256, ads, etc.
Spotlight API URL was originally found in this file, thanks to the author for their findings!