background: filter dark into light BGs

This commit is contained in:
lelgenio 2021-02-21 19:00:19 -03:00
parent db411c45c7
commit 3830da7085
6 changed files with 18 additions and 5 deletions

View File

@ -222,6 +222,7 @@ actions:
pam_gpg: _pam-gpg-strap
make_theme: _make_theme
install_meta: install_meta
filter_backgrounds: _filter_backgrounds
post:
# by having it be the last thing to run
@ -324,9 +325,11 @@ dotfiles: # Just a bunch of paths and action mappings
actions:
- make_theme
wallpapers:
src: wallpapers
dst: ~/.local/share/wallpapers
backgrounds:
src: backgrounds
dst: ~/.local/share/backgrounds/
actions:
- filter_backgrounds
mime:
src: mime/

View File

Before

Width:  |  Height:  |  Size: 368 KiB

After

Width:  |  Height:  |  Size: 368 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -x
for img in ~/.local/share/backgrounds/*_dark.*
do
new_path=$(echo "$img" | sed 's/_dark/_light/')
test -f "$new_path" ||
convert "$img" -channel RGB -negate "$new_path"
done

View File

@ -28,9 +28,9 @@ set $mus r
set $wallPath\
{%@@ if color.type == 'dark' @@%}
~/.local/share/wallpapers/assembly.png
~/.local/share/wallpapers/assembly_dark.png
{%@@ else @@%}
~/.local/share/wallpapers/austria.jpg
~/.local/share/wallpapers/assembly_light.png
{%@@ endif @@%}
###############################################################