reload theme st and nvim
This commit is contained in:
parent
540b2892ad
commit
616981a8bb
1 changed files with 13 additions and 7 deletions
20
ui.nix
20
ui.nix
|
|
@ -1,6 +1,6 @@
|
|||
{ lib, config, pkgs, variant, ... }:
|
||||
let
|
||||
defaultTerminal = "alacritty";
|
||||
defaultTerminal = "st";
|
||||
alacrittyLightTheme = "${pkgs.alacritty-theme}/night_owlish_light.toml";
|
||||
alacrittyDarkTheme = "${pkgs.alacritty-theme}/monokai_charcoal.toml";
|
||||
in
|
||||
|
|
@ -231,6 +231,12 @@ in
|
|||
reload-hyprland = ''
|
||||
hyprctl reload
|
||||
'';
|
||||
reload-st = ''
|
||||
kill -SIGUSR1 $(pgrep st) # reload st config
|
||||
'';
|
||||
reload-neovim = ''
|
||||
kill -SIGUSR1 $(pgrep nvim)
|
||||
'';
|
||||
in {
|
||||
lightModeScripts = {
|
||||
gtk-theme = ''
|
||||
|
|
@ -255,9 +261,9 @@ in
|
|||
ln -s ${alacrittyLightTheme} ~/.config/alacritty/colors.toml
|
||||
'';
|
||||
notify = "${pkgs.libnotify}/bin/notify-send \"Light mode\"";
|
||||
set-st-colors = ''
|
||||
kill -SIGUSR1 $(pgrep st) # reload st config
|
||||
'';
|
||||
inherit reload-hyprland;
|
||||
inherit reload-st;
|
||||
inherit reload-neovim;
|
||||
};
|
||||
|
||||
darkModeScripts = {
|
||||
|
|
@ -283,9 +289,9 @@ in
|
|||
ln -s ${alacrittyDarkTheme} ~/.config/alacritty/colors.toml
|
||||
'';
|
||||
notify = "${pkgs.libnotify}/bin/notify-send \"Dark mode\"";
|
||||
set-st-colors = ''
|
||||
kill -SIGUSR1 $(pgrep st) # reload st config
|
||||
'';
|
||||
inherit reload-hyprland;
|
||||
inherit reload-st;
|
||||
inherit reload-neovim;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue