wpfind/README.md

97 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2024-10-29 01:31:07 +00:00
# WPFind
2017-09-01 22:47:25 +00:00
2024-10-29 01:31:07 +00:00
![wpfind](pics/logo.png)
2017-09-01 22:47:25 +00:00
2017-09-01 22:55:26 +00:00
The purpose of this script is to find wallpapers among pictures files in directory and sub-directories and move/copy them to a separate directory.
It can be useful when you are trying to clean your mess on your computer ;-)
2017-09-01 22:47:25 +00:00
2024-10-29 01:31:07 +00:00
## Requirements
2017-09-01 23:02:23 +00:00
2024-11-04 22:34:16 +00:00
- Ubuntu, Linux Mint (should work on Ubuntu derivatives), Arch Linux (should work on Ubuntu derivatives) and probably any Linux distro
2024-10-29 01:31:07 +00:00
- detox
- imagemagick
2017-09-01 23:02:23 +00:00
2024-10-29 01:31:07 +00:00
## Installation
2017-09-01 22:47:25 +00:00
2018-06-10 19:58:33 +00:00
For Ubuntu 18.04, Linux Mint 19.x, and other derivatives
2024-10-29 01:31:07 +00:00
```shell
2018-06-10 19:58:33 +00:00
curl -L https://packagecloud.io/makoto/stable/gpgkey | sudo apt-key add -
echo "deb https://packagecloud.io/makoto/stable/ubuntu/ bionic main" | sudo tee /etc/apt/sources.list.d/makoto.list
sudo apt-get update
2018-05-21 16:18:48 +00:00
sudo apt-get install wpfind
2017-09-01 23:28:43 +00:00
```
2017-09-01 22:47:25 +00:00
For Ubuntu 20.04, Linux Mint 20.x, and other derivatives
2024-10-29 01:31:07 +00:00
```shell
curl -L https://packagecloud.io/makoto/stable/gpgkey | sudo apt-key add -
echo "deb https://packagecloud.io/makoto/stable/ubuntu/ focal main" | sudo tee /etc/apt/sources.list.d/makoto.list
sudo apt-get update
sudo apt-get install wpfind
```
2024-10-29 01:31:07 +00:00
For Arch Linux and derivatives
2024-10-29 01:31:07 +00:00
```shell
2024-10-29 01:33:23 +00:00
yay -S wpfind
```
2024-10-29 01:31:07 +00:00
## Usage options
2017-09-01 22:47:25 +00:00
2017-09-01 22:55:26 +00:00
```
██╗ ██╗██████╗ ███████╗██╗███╗ ██╗██████╗
██║ ██║██╔══██╗██╔════╝██║████╗ ██║██╔══██╗
██║ █╗ ██║██████╔╝█████╗ ██║██╔██╗ ██║██║ ██║
██║███╗██║██╔═══╝ ██╔══╝ ██║██║╚██╗██║██║ ██║
╚███╔███╔╝██║ ██║ ██║██║ ╚████║██████╔╝
╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝
2017-09-01 22:55:26 +00:00
Find wallpapers recursively in a dir and sub-directories...
2017-09-01 22:55:26 +00:00
Version : 0.1.3
2017-09-01 22:55:26 +00:00
Author : Francois B (Makoto)
Licence : GPLv3
Usage : wpfind [options]
-c : copy wallpapers found in a specific folder
-m : move wallpapers found in a specific folder
2018-06-24 00:02:09 +00:00
-s : interactive mode (ask confirmation before overwriting a file)
-i <directory_to_analyze_to_find_wallpapers> (default: current directory)
2017-09-01 22:55:26 +00:00
-o <wallpapers_found_save_directory> (default: wpfiles inside the current directory)
-w <minimum_pixel_width> (default: 1920px)
-v : verbose mode
-h : show help & informations
```
2024-10-29 01:31:07 +00:00
## Usage examples
2017-09-01 22:55:26 +00:00
Copy wallpapers in the current directory and sub-directories with minimum width of 1920px to wpfiles
2024-10-29 01:31:07 +00:00
```shell
2017-09-01 22:55:26 +00:00
wpfind -c
2017-09-01 22:47:25 +00:00
```
2017-09-01 22:55:26 +00:00
Move wallpapers in the current directory and sub-directories with minimum width of 1920px to wpfiles
2024-10-29 01:31:07 +00:00
```shell
2017-09-01 22:55:26 +00:00
wpfind -m
```
Move wallpapers in the /home/user/MyPics directory and sub-directories with minimum width of 2560px to /home/user/MyWP directory
2024-10-29 01:31:07 +00:00
```shell
2017-09-01 22:55:26 +00:00
wpfind -m -w 2560 -i /home/user/MyPics -o /home/user/MyWP
2017-09-01 22:47:25 +00:00
```
2024-10-29 01:31:07 +00:00
## Credits
2017-09-01 22:47:25 +00:00
This script has been written by Francois B. (Makotosan/Shakasan)
2024-10-29 01:31:07 +00:00
- Email : francois@exoseed.be
- Website : https://makotonoblog.be/wpfind/
2017-09-01 22:47:25 +00:00
2024-10-29 01:31:07 +00:00
## Licence
2017-09-01 22:47:25 +00:00
2024-10-29 01:31:07 +00:00
The script is licensed under the terms of the GPLv3