Skip to content

nwg-shell-config 0.5.48

Compare
Choose a tag to compare
@nwg-piotr nwg-piotr released this 24 Oct 01:30
· 33 commits to master since this release
  • Lock screen random image source: unsplash.com replaced with wallhaven.cc; closes #83.

As the new unsplash.com API terms of use make it impossible to use their images in our application, I decided to switch to wallhaven.cc. If you use random images on your lock screen, you need to look at 'Random image from wallhaven.cc' settings in the in 'Idle & Lock screen' tab.

2024-10-24-030212_hypr_screenshot

Settings:

  • Tags (p parameter): comma-separated list. Limits search to images tagged with given tags: the more tags, the less search results.
  • Aspect ratios (ratios parameter): comma-separated list. Limits search to images of given aspect ratios.
  • Minimum resolution (atleast parameter): limits search to images of dimensions equal or greater than the given value. Hint: use your biggest monitor dimensions here.
  • API key (apikey parameter): if you have an account on wallhaven.cc, enter your API key here, to search images with your browsing settings and default filters from wallhaven.cc. Without the API key you'll always see SFW content.

In case you need some further explanation, see https://wallhaven.cc/help/api#search.

NOTE: 'Aspect ratios', 'Minimum resolution' and 'API key' field values are not being validated. Make sure you know what you enter there, or you may stop nwg-lock from downloading anything. If you leave a field blank, a safe default value will be used.

Packaging note

From now on the nwg-lock command depends on the 'python-requests' module. Actually we install it together with nwg-panel, but it makes sense to add it to nwg-shell-config dependencies.