forked from germedeb/IconToaster
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
9b45d9424e | |||
04e1664609 | |||
63433af137 | |||
c03c1b2cc9 | |||
7b8e851571 |
@ -6,4 +6,5 @@ for now it only lists what icons you have (apps that need it and your icon pack)
|
|||||||
|
|
||||||
this is a WIP project, so, don't take this seriously for now.
|
this is a WIP project, so, don't take this seriously for now.
|
||||||
|
|
||||||
this program is free software. It is licensed under the GNU AGPL v3 license. see LICENSE ![agpl image](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)
|
this program is free software. It is licensed under the GNU AGPL v3 license. see LICENSE
|
||||||
|
![agpl image](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)
|
||||||
|
18
functions.sh
18
functions.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This file is part of missing-icon-reporter
|
# This file is part of IconToaster
|
||||||
# and it's AGPLv3 licensed.
|
# and it's AGPLv3 licensed.
|
||||||
|
|
||||||
desktopsearch () {
|
desktopsearch () {
|
||||||
@ -11,7 +11,7 @@ desktopsearch () {
|
|||||||
iconsearch () {
|
iconsearch () {
|
||||||
local icon_pack=$1
|
local icon_pack=$1
|
||||||
if [ -z $icon_pack ]; then
|
if [ -z $icon_pack ]; then
|
||||||
echo "iconsearch requires a icon pack." 1>&2
|
echo "IconToaster requires an icon pack as an argument." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
for icon in $(find ~/.icons/$icon_pack -name '*.png');
|
for icon in $(find ~/.icons/$icon_pack -name '*.png');
|
||||||
@ -26,7 +26,7 @@ iconsearch () {
|
|||||||
compare_desktop_and_icons() {
|
compare_desktop_and_icons() {
|
||||||
local icon_pack=$1
|
local icon_pack=$1
|
||||||
if [ -z $icon_pack ]; then
|
if [ -z $icon_pack ]; then
|
||||||
echo "iconsearch requires a icon pack." 1>&2
|
echo "IconToaster requires an icon pack as an argument." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
perl <(cat <<'EOF'
|
perl <(cat <<'EOF'
|
||||||
@ -46,7 +46,7 @@ sub color_wrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
color_wrapper('yellow');
|
color_wrapper('yellow');
|
||||||
say 'This is the Toasters Icon Pack Missing Icons Tool';
|
say 'This is IconToaster';
|
||||||
color_wrapper('reset');
|
color_wrapper('reset');
|
||||||
|
|
||||||
my $desktop_search_file = $ARGV[0];
|
my $desktop_search_file = $ARGV[0];
|
||||||
@ -62,10 +62,10 @@ close $desktop_filehandle;
|
|||||||
|
|
||||||
open my $icon_filehandle, '<', $icon_search_file;
|
open my $icon_filehandle, '<', $icon_search_file;
|
||||||
|
|
||||||
color_wrapper('red');
|
color_wrapper('blue');
|
||||||
say << 'EOS';
|
say << 'EOS';
|
||||||
|
|
||||||
Known Icons:
|
In both your icon pack and system:
|
||||||
-------------
|
-------------
|
||||||
EOS
|
EOS
|
||||||
color_wrapper('reset');
|
color_wrapper('reset');
|
||||||
@ -79,7 +79,7 @@ close $icon_filehandle;
|
|||||||
color_wrapper('red');
|
color_wrapper('red');
|
||||||
say << 'EOS';
|
say << 'EOS';
|
||||||
|
|
||||||
Missing icons:
|
Missing (In your system and not in your icon pack):
|
||||||
-------------
|
-------------
|
||||||
EOS
|
EOS
|
||||||
color_wrapper('reset');
|
color_wrapper('reset');
|
||||||
@ -88,10 +88,10 @@ for my $key (keys %desktop_relation) {
|
|||||||
say $key;
|
say $key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
color_wrapper('red');
|
color_wrapper('green');
|
||||||
say << 'EOS';
|
say << 'EOS';
|
||||||
|
|
||||||
Not missing in your system icons:
|
Unused icons from your icon pack:
|
||||||
-------------
|
-------------
|
||||||
EOS
|
EOS
|
||||||
color_wrapper('reset');
|
color_wrapper('reset');
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# This file is part of missing-icon-reporter
|
# This file is part of IconToaster
|
||||||
# and it's AGPLv3 licensed.
|
# and it's AGPLv3 licensed.
|
||||||
|
|
||||||
|
# Launch this script with an argument containing the icon pack
|
||||||
|
# for example, if you want to test aleta, you must write
|
||||||
|
# ./missing.sh aleta
|
||||||
|
# Note that for now only icon packs in ~/.icons are testable.
|
||||||
|
|
||||||
script_path=$(dirname $0)
|
script_path=$(dirname $0)
|
||||||
script_name=$(basename $0)
|
script_name=$(basename $0)
|
||||||
icon_pack=$1
|
icon_pack=$1
|
||||||
@ -10,7 +15,7 @@ icon_pack=$1
|
|||||||
. "$script_path/functions.sh"
|
. "$script_path/functions.sh"
|
||||||
|
|
||||||
if [ -z $icon_pack ]; then
|
if [ -z $icon_pack ]; then
|
||||||
echo "$script_name requires a icon pack." 1>&2
|
echo "$script_name requires an icon pack as an argument." 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user