2024-12-13 16:23 : id 449

This commit is contained in:
deadvey 2024-12-13 16:26:50 +00:00
parent 9275a6b47a
commit aadc885d13
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
{config, pkgs, lib, ... }:
let
# Theme/Mode
THEME = "nord";
MODE = "dark";
THEME = "${1}";
MODE = "${2}";
# 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,8 +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
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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 186 KiB