Chris Down
a010dee360
Merge branch 'backout_async' into develop
...
Currently there are too many problems with async -- we need context
about previous clips for things like
https://github.com/cdown/clipnotify/issues/1 . This is still doable, but
needs more consideration first.
2018-02-20 10:10:38 +00:00
Chris Down
7b4267868e
Revert "Remove last_data checks"
...
This reverts commit 55407ba3f6
.
2018-02-20 10:09:50 +00:00
Chris Down
52b144d970
Revert "Take clipboard ownership prior to clipnotify"
...
This reverts commit eb7d2b9481
.
2018-02-20 10:09:24 +00:00
Chris Down
9c436084f2
Revert "Use xsel -o/-i instead of -k"
...
This reverts commit 47eb3d182c
.
2018-02-20 10:08:20 +00:00
Chris Down
9a52f7ddba
Revert "Make sure we don't break #34 in new pre-ownership"
...
This reverts commit fe69861101
.
2018-02-20 10:08:13 +00:00
Chris Down
6825c302dc
Revert "Remove CM_ONESHOT-specific logic in flock failure checks"
...
This reverts commit 728d242d3c
.
2018-02-20 10:07:58 +00:00
Chris Down
a85f8998b4
Revert "Make main work block async"
...
There is currently a bug where this causes a copy storm at startup. More
worryingly, more and more newlines are appended to the end, so something
is going wrong in copy logic anyway, async or not.
This reverts commit 11304d3a60
.
2018-02-20 09:29:49 +00:00
Chris Down
caab3f6a62
Add $CM_SELECTIONS to limit which selections we copy
...
Closes #60 .
2018-02-19 18:21:44 +00:00
Chris Down
728d242d3c
Remove CM_ONESHOT-specific logic in flock failure checks
...
Now that we're in a subshell and acting asynchronously, this doesn't do
anything different.
2018-02-19 15:41:11 +00:00
Chris Down
8906e1d96c
Merge branch 'async' into develop
2018-02-19 15:12:46 +00:00
Chris Down
fe69861101
Make sure we don't break #34 in new pre-ownership
2018-02-19 15:11:51 +00:00
Chris Down
47eb3d182c
Use xsel -o/-i instead of -k
...
-k is not selection based, so it also takes PRIMARY.
2018-02-19 15:07:26 +00:00
Chris Down
11304d3a60
Make main work block async
...
Closes #59 .
2018-02-19 15:04:52 +00:00
Chris Down
eb7d2b9481
Take clipboard ownership prior to clipnotify
...
This avoids infinite loop if we make the work block async
2018-02-19 15:01:21 +00:00
Chris Down
55407ba3f6
Remove last_data checks
...
Nowadays everything should be using clipnotify, which avoids constantly
copying the same data.
2018-02-19 14:51:00 +00:00
Chris Down
b5e8543b3e
Use xsel -k
, instead of -o
-> -i
2018-02-19 14:43:44 +00:00
Chris Down
3704ce3427
Fall back to polling if clipnotify fails
2018-02-08 01:05:15 +00:00
Chris Down
fd665a298a
Merge branch 'release/4.1.0'
2018-02-08 00:58:19 +00:00
Chris Down
b33d74cae5
Add messages when clipnotify is not detected
2018-02-08 00:55:29 +00:00
Chris Down
935c498dec
Add note in readme about new non-polling mode
2018-02-05 23:52:37 +00:00
Chris Down
2b04a1eafe
Add optional support for clipnotify to avoid polling
2018-02-05 23:49:41 +00:00
Chris Down
f576a116fd
Don't attempt to write to sockets represented as files
...
Fixes #54 .
2017-10-29 10:40:38 +00:00
Chris Down
35a3cb2e8a
Use /proc/self/fd/2 instead of /dev/stderr where possible
...
/dev/stderr is not standardised, whereas /proc/self/fd is provided by
the kernel. Add a fallback for non-Linux.
2017-10-29 02:08:25 +00:00
Chris Down
ef3102c5e9
Merge branch 'release/4.0.0'
2017-10-25 01:58:03 +01:00
Chris Down
f34bd68797
Bump major_version to 4
2017-10-25 01:57:35 +01:00
Chris Down
48b1ebf9fb
If CM_MAX_CLIPS is 0, don't truncate
2017-10-24 22:53:54 +02:00
Chris Down
6855d24e3a
Prefer $XDG_RUNTIME_DIR for storage
...
Closes #51 .
2017-10-24 19:14:23 +02:00
Chris Down
4a0bd8f1f4
Only keep $CM_MAX_CLIPS newest clips
...
Closes #50 .
2017-10-24 17:34:23 +02:00
Chris Down
e6c312b639
Avoid double writing if both selections are the same
2017-10-24 17:34:00 +02:00
Chris Down
8bb4ff3999
Gate new clipboard entry output on CM_DEBUG
...
Closes #49 .
2017-10-24 17:03:02 +02:00
Chris Down
2cd2287612
Add more documentation on -h/--help for clipmenu{,d}
2017-05-31 20:03:06 +01:00
Chris Down
60611584ec
Remove unused last_filename
2017-05-30 09:06:04 +01:00
Chris Down
f0d09c7692
Use $TMPDIR as base for cache directory
...
Closes #38 .
2017-05-30 09:03:35 +01:00
Chris Down
e5508e84c5
systemd service: Don't restrict to only /tmp
...
People might set $TMPDIR and this doesn't buy us much.
2017-05-30 09:02:58 +01:00
Chris Down
caa009b222
Remove partial clip dedupe support
...
The application that was particularly bad at this (Chrome) now no longer
does this, and this is basically a hack that has lasted too long.
Also closes #41 and closes #42 since the questionable "feature" is going
away.
2017-05-30 08:58:19 +01:00
Chris Down
f184c37994
Add a note about using CM_ONESHOT, per #47
2017-05-30 08:55:27 +01:00
Chris Down
e7a15a5d50
Do not sleep initially in oneshot mode
2017-05-10 10:05:16 +01:00
Chris Down
3ab7a6e2e7
Merge branch 'release/3.2.0'
2017-03-19 10:06:35 +00:00
Chris Down
33b0e13404
Test CM_LAUNCHER
2017-03-19 09:54:56 +00:00
Chris Down
7d9c46a370
Pass args in dmenu/rofi shims
2017-03-19 09:54:47 +00:00
Chris Down
92d584e4b3
Use a function insted of an alias for dmenu shim
2017-03-19 09:48:55 +00:00
Chris Down
1b4fcd5b8d
Add demo GIF
2017-03-19 09:43:39 +00:00
Chris Down
e315d8262c
Forcibly add -dmenu if using rofi as $CM_LAUNCHER
2017-03-19 08:00:27 +00:00
Chris Down
497ba9c95c
Mention rofi in readme
2017-03-19 07:55:57 +00:00
Chris Down
abe461461b
Add clipmenu --help
2017-03-19 07:53:51 +00:00
Chris Down
e65b51b33c
Use CM_* env vars
2017-03-19 07:53:26 +00:00
Chris Down
117385015b
Add $CM_LAUNCHER env variable
2017-03-19 07:40:19 +00:00
Chris Down
eecc031718
Use stderr for xsel logging when detached
2017-03-19 07:38:34 +00:00
Chris Down
19569a81bc
Log new clipboard entries without $DEBUG
2017-03-19 07:34:29 +00:00
Chris Down
99a49211d9
Merge branch 'release/3.1.0'
2017-03-17 01:20:23 +00:00