diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/bin/epoch | 9 | ||||
-rwxr-xr-x | bin/bin/gfx-intel (renamed from sys/code/sys/gfx-intel) | 0 | ||||
-rwxr-xr-x | bin/bin/gfx-off (renamed from sys/code/sys/gfx-off) | 0 | ||||
-rwxr-xr-x | bin/bin/gfx-on (renamed from sys/code/sys/gfx-on) | 0 | ||||
-rwxr-xr-x | bin/bin/gfx-radeon (renamed from sys/code/sys/gfx-radeon) | 0 | ||||
-rwxr-xr-x | bin/bin/gfx-status (renamed from sys/code/sys/gfx-status) | 0 | ||||
-rwxr-xr-x | bin/bin/gitio (renamed from sys/code/sys/gitio) | 0 | ||||
-rwxr-xr-x | bin/bin/hash-compare (renamed from sys/code/sys/hash-compare) | 0 | ||||
-rw-r--r-- | bin/bin/img (renamed from sys/code/sys/img) | 0 | ||||
-rwxr-xr-x | bin/bin/ix (renamed from sys/code/sys/ix) | 0 | ||||
-rwxr-xr-x | bin/bin/screenfetch (renamed from sys/code/sys/info) | 0 | ||||
-rwxr-xr-x | bin/bin/skull (renamed from fun/code/fun/skull) | 0 | ||||
-rwxr-xr-x | bin/bin/tmx (renamed from sys/code/sys/tmx) | 0 | ||||
-rwxr-xr-x | bin/bin/todo | 60 | ||||
-rwxr-xr-x | bin/bin/toggle-touchpad (renamed from sys/code/sys/toggle-touchpad) | 0 |
15 files changed, 69 insertions, 0 deletions
diff --git a/bin/bin/epoch b/bin/bin/epoch new file mode 100755 index 0000000..ba45b02 --- /dev/null +++ b/bin/bin/epoch @@ -0,0 +1,9 @@ +#!/bin/bash + +# get seconds since epoch +test "x$1" == x && date +%s && exit 0 + +# or convert epoch seconds to date format (see "man date" for options) +EPOCH="$1" +shift +date -d @"$EPOCH" "$@" diff --git a/sys/code/sys/gfx-intel b/bin/bin/gfx-intel index 804de12..804de12 100755 --- a/sys/code/sys/gfx-intel +++ b/bin/bin/gfx-intel diff --git a/sys/code/sys/gfx-off b/bin/bin/gfx-off index aeb6daf..aeb6daf 100755 --- a/sys/code/sys/gfx-off +++ b/bin/bin/gfx-off diff --git a/sys/code/sys/gfx-on b/bin/bin/gfx-on index 57d08d4..57d08d4 100755 --- a/sys/code/sys/gfx-on +++ b/bin/bin/gfx-on diff --git a/sys/code/sys/gfx-radeon b/bin/bin/gfx-radeon index a0db665..a0db665 100755 --- a/sys/code/sys/gfx-radeon +++ b/bin/bin/gfx-radeon diff --git a/sys/code/sys/gfx-status b/bin/bin/gfx-status index 93d564a..93d564a 100755 --- a/sys/code/sys/gfx-status +++ b/bin/bin/gfx-status diff --git a/sys/code/sys/gitio b/bin/bin/gitio index b6a7983..b6a7983 100755 --- a/sys/code/sys/gitio +++ b/bin/bin/gitio diff --git a/sys/code/sys/hash-compare b/bin/bin/hash-compare index 49dad54..49dad54 100755 --- a/sys/code/sys/hash-compare +++ b/bin/bin/hash-compare diff --git a/sys/code/sys/img b/bin/bin/img index ba58ac0..ba58ac0 100644 --- a/sys/code/sys/img +++ b/bin/bin/img diff --git a/sys/code/sys/ix b/bin/bin/ix index 2cf7fa5..2cf7fa5 100755 --- a/sys/code/sys/ix +++ b/bin/bin/ix diff --git a/sys/code/sys/info b/bin/bin/screenfetch index d435368..d435368 100755 --- a/sys/code/sys/info +++ b/bin/bin/screenfetch diff --git a/fun/code/fun/skull b/bin/bin/skull index 91deff5..91deff5 100755 --- a/fun/code/fun/skull +++ b/bin/bin/skull diff --git a/sys/code/sys/tmx b/bin/bin/tmx index c912561..c912561 100755 --- a/sys/code/sys/tmx +++ b/bin/bin/tmx diff --git a/bin/bin/todo b/bin/bin/todo new file mode 100755 index 0000000..378f251 --- /dev/null +++ b/bin/bin/todo @@ -0,0 +1,60 @@ +#!/bin/bash +# +# simple todo script +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero <x@xero.nu> +# ░▓ code ▓ http://code.xero.nu/todo +# ░▓ mirror ▓ http://pub.iotek.org/p/mJPHqv8 +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ + +file="~/.todo" +( [ -e "$file" ] || touch "$file" ) && [ ! -w "$file" ] && echo cannot write to $file && exit 1 +if [[ -z $1 || $1 == "--help" || $1 == "-h" || $1 == "help" ]]; then + echo "┌──────[ todo ]──[ version 0.0.1 ]─────── ─ ─" + echo "│ usage: todo <options>" + echo "│ author: xero harrison - http://xero.nu" + echo "├────────────────[ options ]"───────────── ─ ─ + echo "│ -s, --show display the todo list" + echo "│ -a, --add <string> add a todo item" + echo "│ -d, --delete <number> delete a todo item" + echo "│ -h, --help display this screen" + echo "└──────────────────────────────────────── ─ ─" +elif [[ $1 = '--show' || $1 = '-s' || $1 == "show" ]]; then + while true; + do + clear + echo "" + echo " ██ ██" + echo " ░██ ░██" + echo " ██████ ██████ ██████ ██████" + echo " ░░░██ ░██░░░░██░██░░░██░██ ░██" + echo " ░██ ░██ ░██░██ ░██░██ ░██" + echo " ░░██ ░░██████ ░░██████░░██████" + echo " ░░ ░░░░░░ ░░░░░░ ░░░░░░" + echo "" + echo " _ __ __________________ __ _" + echo "" + nl -b a $file + sleep 4 + done; +elif [[ $1 = '--delete' || $1 = '-d' || $1 == "delete" ]]; then + if [[ -z $2 ]]; then + echo "missing option" + echo "pass an item number to delete" + else + sed -e $2'd' -i $file + fi +elif [[ $1 = '--add' || $1 = '-a' || $1 == "add" ]]; then + if [[ -z $2 ]]; then + echo "missing option" + echo "pass an item to add" + else + echo $2 >> $file + fi +else + echo "unknown option" + echo "call 'todo --help' for more info" +fi +exit diff --git a/sys/code/sys/toggle-touchpad b/bin/bin/toggle-touchpad index 2381a86..2381a86 100755 --- a/sys/code/sys/toggle-touchpad +++ b/bin/bin/toggle-touchpad |