2024-12-13 11:16 : id 434
This commit is contained in:
parent
03aef9f14b
commit
1bd4797d82
@ -1,8 +1,8 @@
|
||||
{config, pkgs, lib, ... }:
|
||||
let
|
||||
# Theme/Mode
|
||||
THEME = "dracula";
|
||||
MODE = "dark";
|
||||
THEME = "gruvbox";
|
||||
MODE = "light";
|
||||
|
||||
# Colours
|
||||
inherit (import ./themes/${THEME}_${MODE}.nix) BG FG GRAY DARK_GRAY RED DARK_RED GREEN DARK_GREEN YELLOW DARK_YELLOW BLUE DARK_BLUE PURPLE DARK_PURPLE CYAN DARK_CYAN GTK_THEME GTK_THEME_NAME GTK_ICONS GTK_CURSOR;
|
||||
@ -123,10 +123,10 @@ in
|
||||
text = ''
|
||||
run_a_command() {
|
||||
if [[ "$light" == "DAY" ]]; then
|
||||
sed -i 's/MODE\ =\ ".*"/MODE\ =\ "light"/' $HOME/.config/home/home.nix
|
||||
sed -i 's/MODE\ =\ ".*"/MODE\ =\ "light"/' $HOME/.config/home-manager/home.nix
|
||||
home-manager switch
|
||||
else
|
||||
sed -i 's/MODE\ =\ ".*"/MODE\ =\ "dark"/' $HOME/.config/home/home.nix
|
||||
sed -i 's/MODE\ =\ ".*"/MODE\ =\ "dark"/' $HOME/.config/home-manager/home.nix
|
||||
home-manager switch
|
||||
fi
|
||||
};
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 185 KiB |
Loading…
Reference in New Issue
Block a user