From eee952f56bb3651982832246fca89e54e51d3be4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 6 Dec 2015 23:51:26 -0500 Subject: add stuff --- .config/cron/alarm | 3 +++ .local/bin/c | 2 ++ .local/bin/m | 7 +++++++ .local/bin/state-the-time | 3 +++ 4 files changed, 15 insertions(+) create mode 100644 .config/cron/alarm create mode 100755 .local/bin/c create mode 100755 .local/bin/m create mode 100755 .local/bin/state-the-time diff --git a/.config/cron/alarm b/.config/cron/alarm new file mode 100644 index 0000000..b4e245e --- /dev/null +++ b/.config/cron/alarm @@ -0,0 +1,3 @@ +#m h dom mon dow command +#49 0 * * * while true; do /home/luke/.local/bin/state-the-time; sleep 1; done +#30 7 * * * while true; do /home/luke/.local/bin/state-the-time; sleep 1; done diff --git a/.local/bin/c b/.local/bin/c new file mode 100755 index 0000000..7342845 --- /dev/null +++ b/.local/bin/c @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +exec xdotool click "${1:-1}" diff --git a/.local/bin/m b/.local/bin/m new file mode 100755 index 0000000..9f4b4c6 --- /dev/null +++ b/.local/bin/m @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +if [[ $# -gt 0 ]]; then + exec xdotool mousemove_relative -- "$@" +else + xdotool mousemove_relative -- 1 1 + xdotool mousemove_relative -- -1 -1 +fi diff --git a/.local/bin/state-the-time b/.local/bin/state-the-time new file mode 100755 index 0000000..c41ad96 --- /dev/null +++ b/.local/bin/state-the-time @@ -0,0 +1,3 @@ +#!/bin/bash + +espeak "It's $(date +%_H:%M|sed 's/:00/ oh clock/')" \ No newline at end of file -- cgit v1.2.3