[ru] Скрипт для поиска всех имеющихся значков во всех имеющихся темах, создания каталога в виде HTML и MarkDown
The icon finding script that plows through all the directories offered to him and finds all possible icons, which he presents in the form of an HTML catalog and a MarkDown list.
[ru] Новый скрипт для сравнения тем значков в виде HTML
Screenshots of workflow (CLI and GUI)
A new script for comparing/rendering icon themes as html-webpages, fully rewrited from zero (not completed yet), but it's about 10x faster then previous because of using gawk C-libraries instead of find/ls/bash commands.
Syntax:
compair-icon-themes.awk /path/to/icontheme1/index.html /path/to/icontheme2/index.html > output.html
For now scripts runs correctly only from terminal and chooses front-end by this hierarchy: dialog -> Xdialog -> yad -> zenity -> kdialog. So if you have installed dialog
utility (or no one from list above) it will run itself in terminal. Otherwise it will use GUI.
You can edit script manually and put your favorite FE name into quotes in the string: #fe[1]=""
(and remove the '#' of course!) at the end of the frontend_detect()
function.
I recommend the very lightest browsers to open them (not Virtual Machines as FireFox or Chrome)! The best are markdown viewer as "ShowDown", and system help browser: "Yelp". Because of many pictures on one page.
OH YES!!! There is no confirmation of file-overwriting yet! Be careful!!!
Screenshot:
[ru] Таблица форматов значка виндоус.
An AWK script, that opens MS Windows® .ico files as HTML-tables.
Needed "icoutils" package as dependency.
Screenshot
[ru] Все ли значки правильно разложены по своим размерам?
Test if all the PNG icons of an IconTheme have the same size as it was set in icon.theme file.
Screenshot:
Requirements:
GAWK for GNU/Linux
Gawk libraries:
- gawkextlib
- gd
- readdir
- filefuncs
Installation of gawk:
Arch/Manjaro:
pacman -S gawk
Debian/Ubuntu/Mint:
apt install gawk
Installation of gawk extensions:
Arch/Manjaro (from AUR):
yay -S gawkextlib gawk-so
or
yaourt -S gawkextlib gawk-so
or
pacaur -S gawkextlib gawk-so
Debian/Ubuntu/Mint:
git clone git://git.code.sf.net/p/gawkextlib/code gawkextlib-code
cd gawkextlib-code
./build.sh lib
./build.sh gd
Syntax:
./test-icon-theme.awk /path/to/theme1/index.theme ../../path/to/theme2/index.theme
Caja/Nautilus script. if you have many identical files with different names, and even soft links to them in one directory, and you need the original to be one, and the rest to be links to it, then this script is what you need! It finds all dupes (even soft links) in current directory by checksum. Select any different files or soft links in one directory, and apply this script.
P.S. All messages are currently in Russian.
Bash script. A tool for icon theme makers. it creates relative symlinks in (neighboring to the current) folders to the same targets. Used for Nautilus, Caja and Thunar actions.
The princip of working:
It creates link targeted to "folder.png" with name "folder-closed.png" in folders (for example): theme/places/16, theme/places/22, theme/places/24, theme/places/32 or/and theme/places/## in one action.
iconthemes2html_locale.awk is now required!
AWK Script for comparing icon themes. It parses index.theme file in icon theme folder, finds all icons in all included folders, and creates html files (separated and named by context of icon group) with comparison between themes.
How to use:
./iconthemes2html.awk [file]... [option]...
Files must be correct index.theme files with path.
Options are:
-c contexts for parsing. Syntax: -c=Actions,Places,MimeTypes
-s sizes to parse. Syntax: -s=16,24,32
-d description file. Syntax: -d=/path/icons_descripnions
-u user list of contexts, icons, and their descriptions; same as -d, but ignores icons, those aren't in list. Syntax: -u=/path/list
Example list
Syntax of list:
# any comment
Context1 #one word;first letter is Uppercase
Description of context1 # must contain spaces
# first word - name of an icon w/o spaces or capitals, after <tab> - the description of icon.
icon1 Description of icon1
icon2 Desc of icon2
icon3 Desc of icon3
Context2
Desc of cont2
icon21 Desc of icon21
icon22 Desc of icon22
-f folder for saving html files. Syntax: -f=/path
Single click on icon copies to clipboard absolute path to current icon file, double click copies absolute path to target (if it's a symlink).
Gray background means that current image recognized as is symlink while directory listing.
Screenshots:
When opening a single theme file it draws one table for all icons in context.