From 6492ba6b4107a4da228e18db4fc5fc871bfb0579 Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 17 Aug 2022 21:34:02 -0500 Subject: updated README to show that everything that got deleted went to an -extras repo. also, hackvr script updated to be better bash --- share/hackvr/examples/clock/run.pre | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 share/hackvr/examples/clock/run.pre (limited to 'share/hackvr/examples/clock/run.pre') diff --git a/share/hackvr/examples/clock/run.pre b/share/hackvr/examples/clock/run.pre deleted file mode 100755 index ed0e68b..0000000 --- a/share/hackvr/examples/clock/run.pre +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash -if [ "$1" = "init" ];then - grep -A1000 '^___CUT___' "$0" | tail -n+2 - exit -elif [ "$1" = "set" ];then - hour=$(date +%H | sed 's/^0//') - minute=$(date +%M | sed 's/^0//') - second=$(date +%S | sed 's/^0//') - printf "_clock_face_hand_hour_ rotate 0 0 -%s\n" "$[$hour * 30 + ($minute / 2)]" - printf "_clock_face_hand_minute_ rotate 0 0 -%s\n" "$[$minute * 6]" - printf "_clock_face_hand_second_ rotate 0 0 -%s\n" "$[$second * 6]" - #printf "_clock_face_hand_hour_ rotate 0 0 %s\n" "$[$hour * 30 + ($minute / 2)]" - #printf "_clock_face_hand_minute_ rotate 0 0 %s\n" "$[$minute * 6]" - #printf "_clock_face_hand_second_ rotate 0 0 %s\n" "$[$second * 6]" -else - nonblocktail \ - <(echo $USER move 0 0 -30) \ - <("$0" init) \ - <(while true;do "$0" set;sleep 1;done) \ - /dev/stdin 2>/dev/null \ - | hackvr 2>/dev/null -fi -exit 0 -___CUT___ -- cgit v1.2.3