greenclip 4.1.0 → 4.2.0
raw patch · 3 files changed
+13/−14 lines, 3 files
Files
- README.md +5/−6
- greenclip.cabal +1/−1
- src/Main.hs +7/−7
README.md view
@@ -16,7 +16,7 @@ **Features:** + Integrated with [rofi](https://github.com/DaveDavenport/rofi)- + Permanently set some selections to added at the end (set `static_history_file = your/file/with/static/entries` in the config file)+ + Permanently set some selections to added at the end (set `static_history = []` in the config file) + Merge X Primary selection with clipboard selection (set `use_primary_selection_as_input = true` in the config file) + Blacklist some applications (see `I want to blacklist some applications !` in the FAQ section) + Copy small images (you can disable it in the config)@@ -25,7 +25,7 @@ - It's a static binary so drop it anywhere in your $PATH env -```wget https://github.com/erebe/greenclip/releases/download/4.1/greenclip```+```wget https://github.com/erebe/greenclip/releases/download/v4.2/greenclip``` - Alternatively if you are using Archlinux you can install the package from AUR@@ -46,7 +46,6 @@ use_primary_selection_as_input = false blacklisted_applications = [] enable_image_support = true- # path without ending / will generate mktemp directory at the prefix location image_cache_directory = "/tmp/greenclip" static_history = [ '''¯\_(ツ)_/¯''',@@ -60,7 +59,7 @@ 1. Spawn the daemon ``` greenclip daemon ``` 2. When ever you need to get your selections history ``` rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' ``` 3. The entry that you have selected will be in your clipboard now-4. Configuration file can be found in ```.config/greenclip.cfg```+4. Configuration file can be found in ```.config/greenclip.toml``` ## Migrating from 2.x version to 3.x one @@ -128,9 +127,9 @@ A. You can also use greenclip with [dmenu](http://tools.suckless.org/dmenu) or [fzf](https://github.com/junegunn/fzf). Example usage: - `greenclip print | sed '/^$/d' | dmenu -i -l 10 -p clipboard | xargs -r -d'\n' -I '{}' greenclip print '{}'`+ `greenclip print | grep . | dmenu -i -l 10 -p clipboard | xargs -r -d'\n' -I '{}' greenclip print '{}'` - `greenclip print | sed '/^$/d' | fzf -e | xargs -r -d'\n' -I '{}' greenclip print '{}'`+ `greenclip print | grep . | fzf -e | xargs -r -d'\n' -I '{}' greenclip print '{}'` ----------
greenclip.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: greenclip-version: 4.1.0+version: 4.2.0 synopsis: Simple clipboard manager to be integrated with rofi description: Simple clipboard manager to be integrated with rofi - Please see README.md category: Linux Desktop
src/Main.hs view
@@ -28,7 +28,7 @@ import System.IO (hClose, hGetContents) import System.Timeout (timeout) import System.Wordexp.Simple (wordexp)-import System.Posix.Temp (mkdtemp)+--import System.Posix.Temp (mkdtemp) import Toml (TomlCodec, (.=)) import qualified Toml@@ -271,11 +271,11 @@ -- if it ends with / we don't create a temp directory -- user is responsible for it- cfg <- if (lastDef ' ' (toS $ imageCachePath cfg) /= '/') - then do- dirPath <- mkdtemp $ (toS $ imageCachePath cfg)- return $ cfg { imageCachePath = toS dirPath }- else return cfg+ -- cfg <- if (lastDef ' ' (toS $ imageCachePath cfg) /= '/')+ -- then do+ -- dirPath <- mkdtemp $ (toS $ imageCachePath cfg)+ -- return $ cfg { imageCachePath = toS dirPath }+ -- else return cfg return cfg @@ -303,7 +303,7 @@ -- Should rename COPY into ADVERTISE but as greenclip is already used I don't want to break configs -- of other people COPY sel -> runReaderT (advertiseSelection sel) cfg- HELP -> putText $ "greenclip v4.1 -- Recyle your clipboard selections\n\n" <>+ HELP -> putText $ "greenclip v4.2 -- Recyle your clipboard selections\n\n" <> "Available commands\n" <> "daemon: Spawn the daemon that will listen to selections\n" <> "print: Display all selections history\n" <>