Skip to content

tomaAlex/WallChange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WallChange 🧱

This code is aimed for other Linux users out there πŸ–₯, who want bright wallpapers during the day 🌞, but don't want their eyes to burn during midnight 🌘

How to use it ⁉️

  1. Create a folder πŸ“ somewhere and save your loved images πŸ–ΌοΈ (these would be the wallpapers changed in the meantime )
  2. Clone this repository
  3. Install all the dependencies πŸ’‰
  4. Run πŸƒ index.js file πŸ—ƒοΈ with su privileges
  5. Follow the given instructions by the script πŸ“œ
  6. Wait a little ⏲️ for the images to be orderd by brightness level and to be renamed, as well

Cloning this repository πŸ‘Ά

Go somewhere in your computer where to store this project, open up a terminal πŸ‘¨β€πŸ’» from there and run πŸƒ git clone https://github.com/tomaAlex/WallChange.git. Just πŸ’Ώ cd WallChange into it and follow the next step.

Installing dependencies πŸ’‰

You need to have npm installed. Check whether or not you have npm installed with check npm βœ…. If not, then install it ❗If you are coming from a Debian distro, then you could simply sudo apt install npm πŸ₯΄. After that, just npm i and wait for all the dependencies to get installed. Now, it would also be a good time to install the imagemagick packet. On Debian: sudo apt install imagemagick.

Running this code πŸƒ

As mentioned, you have to run the script πŸ“œ with su privileges, as it needs them, in order to create the wallChange.service service, which runs this script automatically at boot time 🀯. Therefore: sudo node index.js. Also, make sure you have the nodejs package installed on your system πŸ˜‚. If not, install it. On Debian, it's really simple: sudo apt install nodejs. 🀟

Do what the script says to πŸ™†

  1. Mention the number of images πŸ”’ which are to be found in the given folder πŸ“‚
  2. Paste the absolute path of the mentioned directory 😁
  3. Mention every hour when images should start (in the required format). For sample, if you were to have a folder with 3 images in it, then you could input something like: [08 30], [13 05], [17 45], which would mean that the first image would run from 8:30 am πŸ•£, untill 1:05 pm πŸ•. From 1:05 pm πŸ•, the second image would be set as the wallpaper, untill it gets to 5:45 pm πŸ• , when the third image is set as the wallpaper, untill the next day, at 8:30 am πŸ•£, when the first image would be run again. This cycle keeps goiung forever... πŸ”„

Voila! πŸ₯³

After executing the script, you don't have to worry anymore about executing it ever again 😊, as it created a service, which makes it to run automatically at boot time 🀯. Therefore, your chosen wallpapers would change everyday as you told it the first time πŸ’ƒ

Can I ever change the images which are set on my wallpaper? 😱

Of course you can! πŸ™ƒ You just have to run the index.js file again with su privileges and choose the other settings you want πŸ˜‰

Want to buy me a coffee? β˜•

paypal

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published