From f4d535098f7cff0121f0d7001a6d9db28b7e7e18 Mon Sep 17 00:00:00 2001 From: chytrex Date: Thu, 19 Jun 2025 12:21:49 +0200 Subject: [PATCH] * opraveny checky potrebnych apps --- theme-scripts/psp-cat.sh | 7 +++---- theme-scripts/pspc.sh | 8 ++++---- theme-scripts/pspc2l.sh | 13 ++++--------- 3 files changed, 11 insertions(+), 17 deletions(-) mode change 100644 => 100755 theme-scripts/psp-cat.sh mode change 100644 => 100755 theme-scripts/pspc.sh mode change 100644 => 100755 theme-scripts/pspc2l.sh diff --git a/theme-scripts/psp-cat.sh b/theme-scripts/psp-cat.sh old mode 100644 new mode 100755 index 4de5656..3022aef --- a/theme-scripts/psp-cat.sh +++ b/theme-scripts/psp-cat.sh @@ -1,12 +1,11 @@ #!/bin/bash # Script for converting an png image to 8bit semitransparent with dimension suitable for category icon -if [ ! command -v convert >/dev/null 2>&1 ]; then - >&2 echo "convert executable could not be found" - exit 128 +if ! command -v convert >/dev/null 2>&1; then + >&2 echo "ERROR: convert could not be found" + exit 128 fi - if [ "$1" = "" ]; then >&2 echo "zadej filename" exit 1 diff --git a/theme-scripts/pspc.sh b/theme-scripts/pspc.sh old mode 100644 new mode 100755 index e4aeb3c..6730235 --- a/theme-scripts/pspc.sh +++ b/theme-scripts/pspc.sh @@ -1,13 +1,13 @@ #!/bin/bash # Script for converting an png image to 8bit semitransparent files base-* and focus-* for using as menu items -if [ ! command -v convert >/dev/null 2>&1 ]; then - >&2 echo "convert executable could not be found" +if ! command -v convert >/dev/null 2>&1; then + >&2 echo "ERROR: convert could not be found" exit 128 fi -if [ ! command -v pngquant >/dev/null 2>&1 ]; then - >&2 echo "pngquant executable could not be found" +if ! command -v pngquanti >/dev/null 2>&1; then + >&2 echo "ERROR: pngquant could not be found" exit 128 fi diff --git a/theme-scripts/pspc2l.sh b/theme-scripts/pspc2l.sh old mode 100644 new mode 100755 index 66a6213..c032d61 --- a/theme-scripts/pspc2l.sh +++ b/theme-scripts/pspc2l.sh @@ -1,21 +1,16 @@ #!/bin/bash # Script for converting an png image to 8bit semitransparent files base-2l* and focus-2l* for using as second level menu items -if [ ! command -v convert >/dev/null 2>&1 ]; then - >&2 echo "convert executable could not be found" +if ! command -v convert >/dev/null 2>&1; then + >&2 echo "ERROR: convert could not be found" exit 128 fi -if [ ! command -v pngquant >/dev/null 2>&1 ]; then - >&2 echo "pngquant executable could not be found" +if ! command -v pngquanti >/dev/null 2>&1; then + >&2 echo "ERROR: pngquant could not be found" exit 128 fi -if [ "$1" = "" ]; then - >&2 echo "zadej filename" - exit 1 -fi - filename="$1" convert "$filename" -channel A -evaluate Multiply 0.5 +channel -resize 48x48 "prefocus-$filename"