2024-12-13 17:20 : id 478

This commit is contained in:
deadvey 2024-12-13 17:20:50 +00:00
parent 86239308f2
commit d17d81ca66
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
{config, pkgs, lib, ... }: {config, pkgs, lib, ... }:
let let
# Theme/Mode # Theme/Mode
THEME = "dracula"; THEME = "solarized";
MODE = "dark"; MODE = "dark";
# Colours # Colours
@ -95,8 +95,8 @@ in
file = { file = {
"theme.txt" = { "theme.txt" = {
text = '' text = ''
THEME = ${THEME} THEME = "solarized";
MODE = ${MODE} MODE = "dark";
# Colors # Colors
BG = ${BG} BG = ${BG}
@ -117,7 +117,7 @@ in
DARK_CYAN = ${DARK_CYAN} DARK_CYAN = ${DARK_CYAN}
# GTK # GTK
GTK_THEME = ${GTK_THEME} GTK_THEME = "solarized";
GTK_THEME_NAME = ${GTK_THEME_NAME} GTK_THEME_NAME = ${GTK_THEME_NAME}
GTK_ICONS = ${GTK_ICONS} GTK_ICONS = ${GTK_ICONS}
GTK_CURSOR = ${GTK_CURSOR} GTK_CURSOR = ${GTK_CURSOR}
@ -125,10 +125,10 @@ in
}; };
"scripts/wallpaper-updater.sh" = { "scripts/wallpaper-updater.sh" = {
text = '' text = ''
file_updated=""; file="";
while sleep 1; do while sleep 1; do
new_file_updated=$(date -r $HOME/theme.txt) new_file=$(cat $HOME/theme.txt)
if [[ "$new_file_updated" != "$file_updated" ]]; then if [[ "$new_file" != "$file" ]]; then
magick ${WALLPAPER_PATH} \ magick ${WALLPAPER_PATH} \
-fuzz 10% -fill "#${BG}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{0,0}]" info:-)" \ -fuzz 10% -fill "#${BG}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{0,0}]" info:-)" \
-fuzz 10% -fill "#${ACCENT}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{3475,1627}]" info:-)" \ -fuzz 10% -fill "#${ACCENT}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{3475,1627}]" info:-)" \
@ -137,7 +137,7 @@ in
wpaperd & wpaperd &
kill $oldid kill $oldid
fi fi
file_updated=$new_file_updated file=$new_file
done done
''; '';
executable = true; executable = true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB