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, ... }:
|
||||
{
|
||||
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" = {
|
||||
executable = true;
|
||||
text = ''
|
||||
|
|
@ -33,11 +51,8 @@
|
|||
ln -sf "$tmux" $HOME/.config/tmux/theme.conf
|
||||
makoctl reload
|
||||
tmux source-file ~/.config/tmux/theme.conf
|
||||
for dir in "$XDG_RUNTIME_DIR-}" "/tmp" "$HOME/.local/state/nvim"; 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
|
||||
done
|
||||
for sock in "$XDG_RUNTIME_DIR"/nvim.*.0; do
|
||||
timeout 1s nvim --server "$sock" --remote-send "$keys" >/dev/null 2>&1 || true
|
||||
done
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue