diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-29 01:48:23 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-29 01:48:23 -0500 |
commit | b68ce750ac90da4fb88669d256666dbaa39f4338 (patch) | |
tree | cabf50b7a85d1062ba60bd3ebf45fb17965884ca /.config/wmii-hg/rbar.sh | |
parent | 15820c5e8ed6f01cf4a87b85126eb7f346ebab3d (diff) | |
parent | 34bbf66a460e5c622e209211869b3a8bde8a68d5 (diff) |
Merge remote-tracking branch 'origin/gluglugt60-par' into build64-par
Conflicts:
.config/login.sh
.config/lxpanel/default/config
.config/wmii-hg/config.sh
Diffstat (limited to '.config/wmii-hg/rbar.sh')
-rw-r--r-- | .config/wmii-hg/rbar.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/wmii-hg/rbar.sh b/.config/wmii-hg/rbar.sh new file mode 100644 index 0000000..8297b71 --- /dev/null +++ b/.config/wmii-hg/rbar.sh @@ -0,0 +1,18 @@ +#!/bin/bash +setup_trap() { + trap "rm -f -- ${HOME}/n/wmii*/rbar/${1}" EXIT +} + +write() { + dirs=("${HOME}"/n/wmii*/rbar/) + sponge|tee -a "${dirs[@]/%/${1}}" > /dev/null +} + +set -eE +shopt -s nullglob +case "$1" in + 1) left-click;; + 2) middle-click;; + 3) right-click;; + *) update "$1";; +esac |