WallPyPer/README.md

97 lines
1.9 KiB
Markdown
Raw Normal View History

2022-06-20 04:52:32 +00:00
# WallPyper
WallPyPer - is small utility, work via
2022-06-20 04:52:32 +00:00
[foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif) and [feh](https://github.com/derf/feh).
2022-06-20 05:27:08 +00:00
2022-07-03 13:09:48 +00:00
<img src="https://user-images.githubusercontent.com/51211371/177040973-fca8885d-167e-4945-a4b6-48336e92e3c1.gif" />
WallPyPer can work with images and gifs.
2022-06-29 12:57:53 +00:00
## Install
Dependencies:
* [feh](https://github.com/derf/feh)
* [foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif)
2022-06-30 13:33:24 +00:00
* [apscheduler](https://github.com/agronholm/apscheduler)
2022-06-29 12:57:53 +00:00
2022-07-05 18:52:38 +00:00
**feh** is most likely already in your list of repositories.
2022-06-29 12:57:53 +00:00
Debiadn/Ubuntu:
```
sudo apt install feh
```
Arch:
```
pacman -S feh
```
2022-07-03 13:17:51 +00:00
---
2022-07-03 12:07:01 +00:00
2022-06-29 12:57:53 +00:00
**foo-Wallpaper-feh-gif** is just bash script, you can download it [here](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif/blob/master/back4.sh)
```
curl -L https://raw.githubusercontent.com/thomas10-10/foo-Wallpaper-Feh-Gif/master/install.sh | bash
```
2022-07-03 13:17:51 +00:00
---
2022-07-03 12:07:01 +00:00
2022-06-30 13:33:24 +00:00
Install apscheduler
```
pip install apscheduler
```
2022-07-03 13:17:51 +00:00
---
2022-07-03 12:07:01 +00:00
2022-06-29 12:57:53 +00:00
Then download WallPyPer and make main.py an run file.
```
git clone https://github.com/KarimullinArthur/WallPyPer.git
cd WallPyPer
chmod +x main.py
```
And after create symbolic a link in one of the PATH var.
For example
```
cd /usr/local/bin/
ln -s <abs_path_to_download_repo>/main.py wallpyper
```
2022-07-07 09:42:53 +00:00
The absolute path you can get via command *pwd*
2022-06-29 12:57:53 +00:00
2022-07-03 12:07:01 +00:00
## Configuration
Create conifg in *~/.config/wallpyper/config*
and put this:
```
{
"path_to_wallpapers":"your_path",
2022-07-05 17:30:46 +00:00
"second":"0",
"minute":"*",
2022-07-03 12:07:01 +00:00
"hour":"*"
}
```
Where *path_to_wallpapers* is *absolute* path to wallpapers.
*second*, *minute* and *hour* set auto change via cron.
2022-07-03 12:15:56 +00:00
[More infarmation about cron](https://en.wikipedia.org/wiki/Cron)
2022-07-03 12:16:54 +00:00
2022-07-03 12:15:56 +00:00
[crontab.guru](https://crontab.guru)
2022-07-03 12:07:01 +00:00
2022-06-29 12:57:53 +00:00
## Auto Start
2022-06-29 13:50:10 +00:00
For **i3wm** add in your ~/.conifg/i3/config one string:
2022-06-29 12:57:53 +00:00
```
exec wallpyper
```
2022-07-03 13:17:51 +00:00
---
2022-07-03 12:07:01 +00:00
Author - Karimullin Arthur
2022-07-03 13:13:32 +00:00
2022-07-03 12:16:54 +00:00
2022-07-03 12:18:23 +00:00
Mail - KarimullinArthur@riseup.net