diff options
author | Mattias Andrée <maandree@kth.se> | 2024-02-10 07:05:52 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-02-10 07:05:52 +0100 |
commit | c90e3bf08b1c6f4426d0f72c76b1ac9a0a346efb (patch) | |
tree | f9a0216e5e7d2a0a77d40a1840a1f6b3424869d2 /tools/linkblink | |
parent | Add alias for versions up to 99 of applications (diff) | |
download | simple-icon-theme-c90e3bf08b1c6f4426d0f72c76b1ac9a0a346efb.tar.gz simple-icon-theme-c90e3bf08b1c6f4426d0f72c76b1ac9a0a346efb.tar.bz2 simple-icon-theme-c90e3bf08b1c6f4426d0f72c76b1ac9a0a346efb.tar.xz |
Add tools
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'tools/linkblink')
-rwxr-xr-x | tools/linkblink | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/linkblink b/tools/linkblink new file mode 100755 index 0000000..fe0d842 --- /dev/null +++ b/tools/linkblink @@ -0,0 +1,14 @@ +#!/bin/sh + +if test $# = 0; then + printf 'usage: blink-on-icon ...' >&2 + exit 1 +fi + +for n; do + of="${n}.svg" + nf="${n}-blink_off.svg" + ot="$(readlink -- "${of}")" + nt="$(printf '%s\n' "$ot" | sed 's/\.svg$/-blink_off&/')" + ln -s "$nt" "$nf" +done |