background: filter dark into light BGs
This commit is contained in:
parent
db411c45c7
commit
3830da7085
|
@ -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/
|
||||
|
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 368 KiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
@ -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
|
|
@ -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 @@%}
|
||||
|
||||
###############################################################
|
||||
|
|
Reference in New Issue