Migrate Greenclip Config from cfg to toml

This commit is contained in:
Sravan Balaji
2024-05-04 10:12:16 -04:00
parent 451285238c
commit ffd64c6248
3 changed files with 25 additions and 21 deletions

View File

@@ -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
}

12
.config/greenclip.toml Normal file
View File

@@ -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 = [
'''¯\_(ツ)_/¯''',
]

View File

@@ -2867,17 +2867,19 @@ element-icon {
*** Greenclip Clipboard Manager *** Greenclip Clipboard Manager
#+BEGIN_SRC conf :tangle .config/greenclip.cfg #+BEGIN_SRC toml :tangle .config/greenclip.toml
Config { [greenclip]
maxHistoryLength = 50, history_file = "~/.cache/greenclip.history"
historyPath = "~/.cache/greenclip.history", max_history_length = 50
staticHistoryPath = "~/.cache/greenclip.staticHistory", max_selection_size_bytes = 0
imageCachePath = "/tmp/greenclip/", trim_space_from_selection = true
usePrimarySelectionAsInput = False, use_primary_selection_as_input = false
blacklistedApps = [], blacklisted_applications = []
trimSpaceFromSelection = True, enable_image_support = true
enableImageSupport = True image_cache_directory = "/tmp/greenclip"
} static_history = [
'''¯\_(ツ)_/¯''',
]
#+END_SRC #+END_SRC
* Display Configuration & Effects * Display Configuration & Effects