lupan-set-theme: trigger kakoune set dark/light colorscheme
This commit is contained in:
@@ -286,6 +286,7 @@ bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{
|
|||||||
|
|
||||||
# LOCAL
|
# LOCAL
|
||||||
|
|
||||||
|
define-command set-dark-or-light-colorscheme %{
|
||||||
colorscheme %sh{
|
colorscheme %sh{
|
||||||
if [ -e ~/.lightmode ]; then
|
if [ -e ~/.lightmode ]; then
|
||||||
echo five-colors-light
|
echo five-colors-light
|
||||||
@@ -293,3 +294,6 @@ colorscheme %sh{
|
|||||||
echo five-colors-dark
|
echo five-colors-dark
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set-dark-or-light-colorscheme
|
||||||
|
|||||||
@@ -69,3 +69,7 @@ WCSS=$(readlink -e ~/.config/waybar/style.css)
|
|||||||
if [ -f "$WCSS" ]; then
|
if [ -f "$WCSS" ]; then
|
||||||
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" "$WCSS"
|
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" "$WCSS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for session in $(kak -l); do
|
||||||
|
echo set-dark-or-light-colorscheme | kak -p $session
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user