kakaone: auto select lp-dark/lp-light color scheme on startup, switch color options case
This commit is contained in:
@@ -12,6 +12,14 @@ nop %sh{
|
||||
ln -s "$kak_runtime/autoload" "$kak_config/autoload/stdlib"
|
||||
}
|
||||
|
||||
colorscheme %sh{
|
||||
if [ -e ~/.lightmode ]; then
|
||||
echo lp-light
|
||||
else
|
||||
echo lp-dark
|
||||
fi
|
||||
}
|
||||
|
||||
declare-user-mode file-mode
|
||||
declare-user-mode options-mode
|
||||
|
||||
@@ -29,10 +37,10 @@ map global -docstring "Open/create in dir" file-mode 'c' ': open-create-in-dir<r
|
||||
|
||||
map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>'
|
||||
|
||||
map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>'
|
||||
map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>'
|
||||
map global -docstring "LP Dark mode" options-mode 'D' ': colorscheme lp-dark<ret>'
|
||||
map global -docstring "LP Light mode" options-mode 'L' ': colorscheme lp-light<ret>'
|
||||
map global -docstring "LP Dark mode" options-mode 'd' ': colorscheme lp-dark<ret>'
|
||||
map global -docstring "LP Light mode" options-mode 'l' ': colorscheme lp-light<ret>'
|
||||
map global -docstring "Light mode" options-mode 'L' ': colorscheme one-light<ret>'
|
||||
map global -docstring "Dark mode" options-mode 'D' ': colorscheme one-darker<ret>'
|
||||
|
||||
map global -docstring "Paste clipboard (append)" user 'p' '<a-!> xsel -bo<ret>'
|
||||
map global -docstring "Paste clipboard (insert)" user 'P' '! xsel -bo<ret>'
|
||||
@@ -106,7 +114,6 @@ bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
|
||||
# COLORSCHEME
|
||||
|
||||
bundle-theme kak-one "https://codeberg.org/raiguard/kak-one"
|
||||
colorscheme 'one-darker'
|
||||
|
||||
bundle-theme kakoune-themes "https://codeberg.org/anhsirk0/kakoune-themes"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user