Adds Microsoft Spotlight functionality to GNU/Linux distros
This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Diogo Cordeiro b37a4272fc first commit 2018-09-04 00:06:17 +01:00 first commit 2018-09-04 00:06:17 +01:00 first commit 2018-09-04 00:06:17 +01:00

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:

Where the expected arguments are:

  • pid : Purpose currently unknown
  • fmt : Output format, e.g. json
  • rafb : Purpose currently unknown
  • ua : Client user agent string
  • disphorzres: Screen width in pixels
  • dispvertres: Screen height in pixels
  • lo : Purpose currently uknown
  • pl : 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!