edit docs

This commit is contained in:
elwld 2022-08-06 16:23:02 +05:00
parent c96f790fa7
commit 6f296f2705
5 changed files with 129 additions and 112 deletions

View file

@ -1 +0,0 @@
../README.md

86
docs/english.md Normal file
View file

@ -0,0 +1,86 @@
# WallPyper
WallPyPer - is small utility, work via
[foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif) and [feh](https://github.com/derf/feh).
[](https://user-images.githubusercontent.com/51211371/177040973-fca8885d-167e-4945-a4b6-48336e92e3c1.gif)
WallPyPer can work with images and gifs.
## Install
Dependencies:
* [feh](https://github.com/derf/feh)
* [foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif)
* [pytomlpp](https://github.com/bobfang1992/pytomlpp)
**feh** is most likely already in your list of repositories.
Debiadn/Ubuntu:
```
sudo apt install feh
```
Arch:
```
pacman -S feh
```
---
**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
```
---
Install pytomlpp
```
pip install pytomlpp
```
---
Then download WallPyPer and install it.
```
git clone https://github.com/KarimullinArthur/WallPyPer.git
cd WallPyPer
chmod +x install.sh
./install.sh
```
## Configuration
Create conifg in *~/.config/wallpyper/config*
Example:
```
# WallPyPer
default_theme = "main"
[new]
type = "static"
random = true
path = "~/.bg/"
[main]
type = "static"
url = "~/.bg/1.jpg"
[dynamic]
type = "dynamic"
path = "~/.bg/"
delay = "10:00"
```
## Auto Start
For **i3wm** add in your ~/.conifg/i3/config one string:
```
exec wallpyper
```

View file

@ -11,6 +11,7 @@ WallPyPer умеет работать как с картинками так с
* [feh](https://github.com/derf/feh)
* [foo-Wallpaper-Feh-Gif ](https://github.com/thomas10-10/foo-Wallpaper-Feh-Gif)
* [pytomlpp](https://github.com/bobfang1992/pytomlpp)
**feh** скорее всего уже есть в вашем списке репозиториев.
@ -28,46 +29,54 @@ pacman -S feh
curl -L https://raw.githubusercontent.com/thomas10-10/foo-Wallpaper-Feh-Gif/master/install.sh | bash
```
После этого скачайте WallPyPer и сделайте main.py исполняемым файлом.
---
Установите pytomlpp
```
pip install pytomlpp
```
---
После этого скачайте WallPyPer и установите его.
```
git clone https://github.com/KarimullinArthur/WallPyPer.git
cd WallPyPer
chmod +x main.py
```
chmod +x install.sh
И после этого создайте ссылку в одном из каталогов перменной PATH.
например
./install.sh
```
cd /usr/local/bin/
ln -s <абсолютный_путь_к_скачанному_репозиторию>/main.py wallpyper
```
Абсолютный путь можно получить командной pwd в катологе WallPyPery.
## Настройка
Создайте конфигурационный факл в ~/.config/wallpyper/config
И запиши туда этот конфиг:
```
{
"path_to_wallpapers":"твой_путь",
"second":"0",
"minute":"*",
"hour":"*"
}
```
Где *path_to_wallpapers* это *абсолютный* путь к твоим обоям.
*second*, *minute* и *hour* устанавливают интервал изменения с помощью крона.
(Больше информации о Cron)[https://ru.wikipedia.org/wiki/Cron]
(crontab.guru)[https://crontab.guru]
Пример:
```
# WallPyPer
default_theme = "main"
[new]
type = "static"
random = true
path = "~/.bg/"
[main]
type = "static"
url = "~/.bg/1.jpg"
[dynamic]
type = "dynamic"
path = "~/.bg/"
delay = "10:00"
```
## Автозагрузка
Для **i3wm** добавте в свой ~/.config/i3/config строчку:
```
exec wallpyper
```
```