From ffd64c62482e87d95a08ee1e2e9f294acaa2b77d Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 4 May 2024 10:12:16 -0400 Subject: [PATCH] Migrate Greenclip Config from cfg to toml --- .config/greenclip.cfg | 10 ---------- .config/greenclip.toml | 12 ++++++++++++ README.org | 24 +++++++++++++----------- 3 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 .config/greenclip.cfg create mode 100644 .config/greenclip.toml diff --git a/.config/greenclip.cfg b/.config/greenclip.cfg deleted file mode 100644 index f55d5c8..0000000 --- a/.config/greenclip.cfg +++ /dev/null @@ -1,10 +0,0 @@ -Config { - maxHistoryLength = 50, - historyPath = "~/.cache/greenclip.history", - staticHistoryPath = "~/.cache/greenclip.staticHistory", - imageCachePath = "/tmp/greenclip/", - usePrimarySelectionAsInput = False, - blacklistedApps = [], - trimSpaceFromSelection = True, - enableImageSupport = True -} diff --git a/.config/greenclip.toml b/.config/greenclip.toml new file mode 100644 index 0000000..0a32628 --- /dev/null +++ b/.config/greenclip.toml @@ -0,0 +1,12 @@ +[greenclip] + history_file = "~/.cache/greenclip.history" + max_history_length = 50 + max_selection_size_bytes = 0 + trim_space_from_selection = true + use_primary_selection_as_input = false + blacklisted_applications = [] + enable_image_support = true + image_cache_directory = "/tmp/greenclip" + static_history = [ + '''¯\_(ツ)_/¯''', + ] diff --git a/README.org b/README.org index 2e96996..8a0aeac 100644 --- a/README.org +++ b/README.org @@ -2867,17 +2867,19 @@ element-icon { *** Greenclip Clipboard Manager -#+BEGIN_SRC conf :tangle .config/greenclip.cfg -Config { - maxHistoryLength = 50, - historyPath = "~/.cache/greenclip.history", - staticHistoryPath = "~/.cache/greenclip.staticHistory", - imageCachePath = "/tmp/greenclip/", - usePrimarySelectionAsInput = False, - blacklistedApps = [], - trimSpaceFromSelection = True, - enableImageSupport = True -} +#+BEGIN_SRC toml :tangle .config/greenclip.toml +[greenclip] + history_file = "~/.cache/greenclip.history" + max_history_length = 50 + max_selection_size_bytes = 0 + trim_space_from_selection = true + use_primary_selection_as_input = false + blacklisted_applications = [] + enable_image_support = true + image_cache_directory = "/tmp/greenclip" + static_history = [ + '''¯\_(ツ)_/¯''', + ] #+END_SRC * Display Configuration & Effects