Fix neovim theming
This commit is contained in:
parent
b0de53040c
commit
c513825d83
1 changed files with 20 additions and 5 deletions
|
|
@ -1,5 +1,23 @@
|
||||||
{config, pkgs, ... }:
|
{config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
services.darkman = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
lat = 33.7490;
|
||||||
|
lng = -84.3880;
|
||||||
|
};
|
||||||
|
|
||||||
|
darkModeScripts.gsettings = ''
|
||||||
|
${pkgs.glib}/bin/gsettings \
|
||||||
|
set org.gnome.desktop.interface color-scheme prefer-dark
|
||||||
|
'';
|
||||||
|
|
||||||
|
lightModeScripts.gsettings = ''
|
||||||
|
${pkgs.glib}/bin/gsettings \
|
||||||
|
set org.gnome.desktop.interface color-scheme prefer-light
|
||||||
|
'';
|
||||||
|
};
|
||||||
home.file."bin/themer.sh" = {
|
home.file."bin/themer.sh" = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
|
|
@ -33,12 +51,9 @@
|
||||||
ln -sf "$tmux" $HOME/.config/tmux/theme.conf
|
ln -sf "$tmux" $HOME/.config/tmux/theme.conf
|
||||||
makoctl reload
|
makoctl reload
|
||||||
tmux source-file ~/.config/tmux/theme.conf
|
tmux source-file ~/.config/tmux/theme.conf
|
||||||
for dir in "$XDG_RUNTIME_DIR-}" "/tmp" "$HOME/.local/state/nvim"; do
|
for sock in "$XDG_RUNTIME_DIR"/nvim.*.0; do
|
||||||
[ -d "$dir" ] || continue
|
|
||||||
find "$dir" -type s -name 'nvim*' 2>/dev/null | while read -r sock; do
|
|
||||||
timeout 1s nvim --server "$sock" --remote-send "$keys" >/dev/null 2>&1 || true
|
timeout 1s nvim --server "$sock" --remote-send "$keys" >/dev/null 2>&1 || true
|
||||||
done
|
done
|
||||||
done
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue