summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-02-11 18:33:07 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-02-11 18:33:07 -0500
commit0283ec58b3f4e179c0d8f57e5fc9ecb6e7750e17 (patch)
treed3d899e4aff0004384d1c7bf9a9b5b7a2ce2e70e
parent54f87a1321656c43a8e25fb00bb048a8f732ed14 (diff)
Backport changes from build64
-rwxr-xr-x.local/bin/c2
-rwxr-xr-x.local/bin/config-path4
-rwxr-xr-x.local/bin/m7
-rwxr-xr-x.local/bin/state-the-time3
4 files changed, 15 insertions, 1 deletions
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/config-path b/.local/bin/config-path
index 4b7cccb..dcac0e8 100755
--- a/.local/bin/config-path
+++ b/.local/bin/config-path
@@ -52,6 +52,7 @@ main() {
var_init PATH
var_init MANPATH
var_init LD_LIBRARY_PATH
+ var_init PKG_CONFIG_PATH
var_init RUBYLIB
var_init PERL5LIB
@@ -60,13 +61,14 @@ main() {
var_add PATH "$prefix/bin" "$prefix/sbin"
var_add MANPATH "$prefix/share/man"
var_add LD_LIBRARY_PATH "$prefix"/lib{,32,64}
+ var_add PKG_CONFIG_PATH "$prefix"/lib{,32,64}/pkgconfig
var_add RUBYLIB "$prefix"/lib{,32,64}
var_add PERL5LIB "$prefix"/lib{,32,64}/perl5
done
# Finally, print the values
lines=()
- for var in PATH MANPATH LD_LIBRARY_PATH RUBYLIB PERL5LIB; do
+ for var in PATH MANPATH LD_LIBRARY_PATH PKG_CONFIG_PATH RUBYLIB PERL5LIB; do
lines+=("$(var_done "$var")")
done
shopt -s extglob
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..760b7e5
--- /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/')"