2024-12-13 16:31 : id 450

This commit is contained in:
deadvey 2024-12-13 16:31:51 +00:00
parent 9405b7b668
commit 2153ce4930

View File

@ -1,8 +1,8 @@
{config, pkgs, lib, ... }:
let
# Theme/Mode
THEME = "${1}";
MODE = "${2}";
THEME = "gruvbox";
MODE = "dark";
# 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;
@ -112,6 +112,8 @@ in
text = ''
echo theme = $1
echo mode = $2
sed -i "s/THEME\ =\ ".*"/THEME\ =\ \"''${1}\";/" $HOME/.config/home-manager/home.nix
sed -i "s/MODE\ =\ ".*"/MODE\ =\ \"''${2}\";/" $HOME/.config/home-manager/home.nix
home-manager switch
bash $HOME/scripts/wallpaper-updater.sh
oldid=$(pgrep wpaperd)