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
#+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