summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-12-06 23:51:26 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-12-06 23:51:26 -0500
commiteee952f56bb3651982832246fca89e54e51d3be4 (patch)
treea3309dcd52d313b97b366ecbf76ccdb21d986050
parent09c9fb87feed6cc57f318f4662e17b6652714d6d (diff)
add stuff
-rw-r--r--.config/cron/alarm3
-rwxr-xr-x.local/bin/c2
-rwxr-xr-x.local/bin/m7
-rwxr-xr-x.local/bin/state-the-time3
4 files changed, 15 insertions, 0 deletions
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