WallPyPer/docs/README_ru.md

74 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WallPyPer
WallPyPer - это маленькая утилита, которая работает
с помощью [foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif) и [feh](https://github.com/derf/feh).
WallPyPer умеет работать как с картинками так с гифками!
## Установка
Зависимости
* [feh](https://github.com/derf/feh)
* [foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif)
**feh** скорее всего уже есть в вашем списке репозиториев.
Debian/Ubuntu:
```
sudo apt install feh
```
Arch:
```
pacman -S feh
```
**foo-WallPaper-Feh-Gif** это всего лишь Bash скрипт его можно скачать [тут](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
```
После этого скачайте WallPyPer и сделайте main.py исполняемым файлом.
```
git clone https://github.com/KarimullinArthur/WallPyPer.git
cd WallPyPer
chmod +x main.py
```
И после этого создайте ссылку в одном из каталогов перменной PATH.
например
```
cd /usr/local/bin/
ln -s <абсолютный_путь_к_скачанному_репозиторию>/main.py wallpyper
```
Абсолютный путь можно получить командной pwd в катологе WallPyPery.
## Настройка
Создайте конфигурационный факл в ~/.config/wallpyper/config
И запиши туда этот конфиг:
```
{
"path_to_wallpapers":"your_path",
"second":"*",
"minute":"*/1",
"hour":"*"
}
```
Где *path_to_wallpapers* это *абсолютный* путь к твоим обоям.
*second*, *minute* и *hour* устанавливают интервал изменения с помощью крона.
(Больше информации о Cron)[https://ru.wikipedia.org/wiki/Cron]
(crontab.guru)[https://crontab.guru]
## Автозагрузка
Для **i3wm** добавте в свой ~/.config/i3/config строчку:
```
exec wallpyper
```