A new image from Unsplash everytime you lock the screen
Go to file
Ceda EI 52bb6091d4 Update install script.
Removed php and composer checks. Added jq and curl checks. Removed library installs.
2018-04-02 01:56:25 +05:30
screenshots Updated README.md and added Screenshots. 2017-12-29 10:58:08 +05:30
.gitignore Added .gitignore to ensure the libraries don't get added to the repo. 2017-12-28 15:45:10 +05:30
LICENSE Added License GPL3 2017-12-30 17:35:36 +05:30
README.md Update README.md 2018-04-02 01:37:34 +05:30
box_config Fixed the config section in install script. 2017-12-29 10:59:39 +05:30
composer.json Updated README.md. Added composer.json 2017-12-28 16:19:09 +05:30
config Added download_daemon which needs to be running in background. Added downloader.php - the part of program that interacts with Unsplash API. Added lock which locks the screen. Added configs. 2017-12-28 20:29:42 +05:30
download_daemon (almost?) finish bash port 2018-04-01 21:48:33 +02:00
downloader.php Added an if-else to check for existance of preferences and accordingly modify the filters array. 2017-12-29 11:00:41 +05:30
downloader.sh Fix downloader.sh. 2018-04-02 01:52:18 +05:30
install Update install script. 2018-04-02 01:56:25 +05:30
lock Added --force-clock to prevent clock disappearing on wrong password. 2018-01-10 17:10:22 +05:30

README.md

i3lock Delta

This prorgam downloads a new image from Unsplash. It checks whether the screen was locked every 5 minutes. In case of no Internet, it retries every 1 minute and displays the previous picture untill a new one is downloaded. The script allows to filter random images based on your choices.

Dependencies

  • jq - Needed for parsing JSON.
  • curl - Available in most software repositories. Also, most probably installed already.
  • Imagemagick - Specifically, the convert command.
  • i3lock-color - Available in AUR (For Arch users). Fork of i3lock with more features. Do not use i3lock since this program utilizes the features of i3lock-color.
  • bash - Most probably will be installed already.

Screenshots

Screenshot

Screenshot

Installation

Run the following commands

cd
git clone https://github.com/Ceda-EI/i3lock-delta
cd i3lock-delta
./install

Save your Unsplash applicationId in ~/i3lock-delta/api_key. You can get the applicationId from registering at Unsplash Developer.

Usage

  • Check that the applicationId in ~/i3lock-delta/api_key is correct.
  • Add ~/i3lock-delta/download_daemon & to your startup applications. Also, run ~/i3lock-delta/download_daemon & to avoid rebooting.
  • To lock the screen, run ~/i3lock-delta/lock. You can map this to your lock key combination.

Configuration

The lock screen customization has been made easier using ~/.config/lock_preferences,api_key, config and box_config files.

  • If the random background should be selected from certain topics, enter the topics in ~/.config/lock_preferences with one topic per line i.e. each line should contain only one topic.
  • To insert your own Unsplash API Key, type/paste it in the ~/i3lock-delta/api_key file.
  • To change the ring color/size or date/time color/style/size/font uncomment (remove the # at start) the corresponding line in ~/i3lock-delta/config and set the value after the = sign.
  • To change the position of box drawn for the clock or the position of the text for photographer, edit ~/i3lock-delta/box_config.

Fonts Used