summaryrefslogtreecommitdiff
path: root/dot/local/bin/cutbuffer_push
diff options
context:
space:
mode:
Diffstat (limited to 'dot/local/bin/cutbuffer_push')
-rwxr-xr-xdot/local/bin/cutbuffer_push20
1 files changed, 5 insertions, 15 deletions
diff --git a/dot/local/bin/cutbuffer_push b/dot/local/bin/cutbuffer_push
index cad9367..ab3ca98 100755
--- a/dot/local/bin/cutbuffer_push
+++ b/dot/local/bin/cutbuffer_push
@@ -5,21 +5,11 @@ date_format=+%F_%H%M%S
5 5
6destdir=$HOME/$dest_basename 6destdir=$HOME/$dest_basename
7 7
8chdir_to_destination()
9{
10 [ -d "$destdir" ] || mkdir -p "$destdir"
11 cd "$destdir"
12}
13
14choose_destination()
15{
16 now=$(date "$date_format")
17 DESTINATION=$dest_basename.$now.$dest_extension
18}
19
20set -e 8set -e
21 9
22chdir_to_destination 10mkdir -p "$destdir"
23choose_destination 11cd "$destdir"
24xcb -p 0 > "$DESTINATION" 12now=$(date "$date_format")
13dest=$dest_basename.$now.$dest_extension
14xcb -p 0 > "$dest"
25 15