diff options
author | Andrew Cady <d@jerkface.net> | 2021-09-14 02:50:44 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-09-14 02:50:44 -0400 |
commit | 0dcb486ee123e5e38029551ec9b375ce1d64244e (patch) | |
tree | 8776bb7c24c03e16045ae6a6e13276be13264cb1 /dot/local/bin/cutbuffer_pop | |
parent | dc3122f0da01a20361e73c77cac7d0f58f859ceb (diff) |
cutbuffer final cleanup
Diffstat (limited to 'dot/local/bin/cutbuffer_pop')
-rwxr-xr-x | dot/local/bin/cutbuffer_pop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dot/local/bin/cutbuffer_pop b/dot/local/bin/cutbuffer_pop index d8ae2ba..d723a27 100755 --- a/dot/local/bin/cutbuffer_pop +++ b/dot/local/bin/cutbuffer_pop | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | default_basename=cutbuffer_grab | 2 | dest_basename=cutbuffer_grab |
3 | default_extension=txt | 3 | dest_extension=txt |
4 | destdir=$HOME/$default_basename | 4 | destdir=$HOME/$dest_basename |
5 | 5 | ||
6 | chdir_to_destination() | 6 | chdir_to_destination() |
7 | { | 7 | { |
@@ -18,7 +18,7 @@ set -e | |||
18 | 18 | ||
19 | chdir_to_destination | 19 | chdir_to_destination |
20 | 20 | ||
21 | f=$(find . -maxdepth 1 -type f -name 'cutbuffer_grab.*.txt' -printf "%C@ %h/%f\0" | extract) | 21 | f=$(find . -maxdepth 1 -type f -name "$dest_basename.*.$dest_extension" -printf "%C@ %h/%f\0" | extract) |
22 | 22 | ||
23 | xcb -s 0 < "$f" | 23 | xcb -s 0 < "$f" |
24 | xsel --input < "$f" | 24 | xsel --input < "$f" |