mirror of
https://gitlab.com/ceda_ei/wish
synced 2025-10-30 13:40:06 +01:00
Merge branch 'config-file' of ceda/Wish into master
Wish is now configured by a config file (although WISH_PLUGINS and WISH_RIGHT_PLUGINS are still used as a fallback if no config file is found. This way old setups won't break). Config file allows for higher customization and re-use of plugins and is easier to maintain for users. Add gINIe parser to Wish. Parse a gINIe config file for wish config. Wrappers around plugins are created to allow re-use with multiple configs and themes.
This commit is contained in:
@@ -9,10 +9,10 @@ function wish_custom_text_end() {
|
||||
function wish_custom_text_set_colors() {
|
||||
WISH_CUSTOM_TEXT_FG=${WISH_CUSTOM_TEXT_FG:-$WISH_DEFAULT_FG}
|
||||
WISH_CUSTOM_TEXT_BG=${WISH_CUSTOM_TEXT_BG:-$WISH_DEFAULT_BG}
|
||||
local default_text='To set custom text here, add WISH_CUSTOM_TEXT="your text" in ~/.bashrc'
|
||||
WISH_CUSTOM_TEXT=${WISH_CUSTOM_TEXT:-$default_text}
|
||||
local default_text='To set custom text here, add text="your text" in your config'
|
||||
WISH_CUSTOM_TEXT_TEXT=${WISH_CUSTOM_TEXT_TEXT:-$default_text}
|
||||
}
|
||||
|
||||
function wish_custom_text_main() {
|
||||
wish_append $WISH_CUSTOM_TEXT_BG $WISH_CUSTOM_TEXT_FG "$WISH_CUSTOM_TEXT"
|
||||
wish_append $WISH_CUSTOM_TEXT_BG $WISH_CUSTOM_TEXT_FG "$WISH_CUSTOM_TEXT_TEXT"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user