Commit graph

10 commits

Author SHA1 Message Date
Chris Down d246b63f27 Set perms to 0700 when creating cache dir 2015-07-27 20:16:13 -07:00
Chris Down 0418bf2e6d Sort selections by recency
Fixes #5.
2015-07-27 20:08:10 -07:00
Chris Down 5b2754868b Make clipmenu cache directory user-specific
Fixes #2.
2015-07-27 20:01:41 -07:00
Chris Down 35521af0ec Make sure that the clipboard data is not just whitespace before copying
This avoids getting a bad array subscript, and polluting the menu.

Thanks to @kaihendry for noticing this issue and suggesting a fix. This commit
is a modified version of his suggestion, using [:blank:] instead of [:space:].

Closes #7.
2015-07-27 20:00:21 -07:00
Chris Down 2cbfb4ef88 Add xclip support
Fixes #1. As first suggested in a fork by @milouse.
2015-02-08 17:40:36 +00:00
Chris Down c40456caa0 Do not write to file if last selection data is the same 2014-02-05 18:52:03 +08:00
Chris Down fecfede140 Do not add newline when copying clipboard data to file 2014-02-05 18:06:47 +08:00
Chris Down fd8b6bfe37 Check that there really is some data before storing it 2014-02-05 18:02:39 +08:00
Chris Down dd9a041846 Copy from both clipboard and primary selections 2014-02-05 17:45:37 +08:00
Chris Down 4a85fd767c Add clipmenu daemon 2014-02-05 16:57:11 +08:00