Generates folder preview thumb
Project description
FOLDERPREVIEW
Generates folder thumbs using child files thumbs
Installation
aur: folderpreview-git
manual:
$ git clone https://gitlab.com/hxss-linux/folderpreview.git
$ cd folderpreview
$ sudo pip install .
$ sudo cp folderpreview.thumbnailer /usr/share/thumbnailers
Usage
- install
- profit
$ folderpreview --help
usage: folderpreview [-h] [-o OUTPUT] [-s SIZE] [-c CONFIG] [-t] folder
Generate folder preview thumb and save into thumbnails directory or OUTPUT
positional arguments:
folder the target folder path
optional arguments:
-h, --help show this help message and exit
-o OUTPUT result thumbnail path
-s SIZE size of thumbnail, px
-c CONFIG config path
-t check if folder supported and request child thumbs
$ journalctl -f -p debug -t folderpreview
Configuration
XDG_CONFIG_HOME/folderpreview/config.yaml:
size: 256 # default thumb size, px
use_hidden: false # generate thumbs for and use hidden files in preview
request_child_thumbs: true # request thumbs of supported child files
# in background scheduler and wait for their readiness
request_timeout: 5 # request timeout, s
priority: # priority of child's files for using on preview
- media # video/image files with thumbs/thumbnailer
- thumbs # other files with thumbs/thumbnailer
- icons # files without thumbs/thumbnailer
- subdirs # recursion in subdirs with the order
- files # all child files
locations: # enabled folders locations(including subdirs)
- /
- $HOME/videos
renderer: custom_renderer.CustomRenderer # renderer class name
Customization
For better integration with icon theme renderer can be customized using config.renderer
option. It should be instance of folderpreview.renderer.ThumbRenderer
class. Custom renderer can be stored in config folder.
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
folderpreview-0.4.0.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for folderpreview-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957158a61838a38d63503f8403bd18a41d42a56d44fbf3e8707ffaec0f653194 |
|
MD5 | ea183e2bd89a2f328d081e89ddc30046 |
|
BLAKE2b-256 | 19051d35f93ee2fcc4a4fb1777253ad02fd4e79df4d8f8088cbb115b8d37b6b6 |