nitrogen wrapper updated

master
Daniel Napora 2022-08-14 23:49:44 +02:00
parent 8fc01229a4
commit 1e99743cbe
1 changed files with 2 additions and 48 deletions

View File

@ -24,6 +24,7 @@ dbus-send \
string:BackgroundFile \ string:BackgroundFile \
variant:string:"$bg_path" variant:string:"$bg_path"
# Mabox Colorizer
# Generate wallpaper color palette # Generate wallpaper color palette
WALLPALDIR="$HOME/.config/colormenu/palettes/wallp" WALLPALDIR="$HOME/.config/colormenu/palettes/wallp"
mkdir -p "$WALLPALDIR" mkdir -p "$WALLPALDIR"
@ -44,55 +45,8 @@ fi
# auto generate themes # auto generate themes
if command -v w2theme &> /dev/null if command -v w2theme &> /dev/null
then then
## Generate Conkys, Menu themes from wallpaper colors
source ~/.config/colorizer/colorizer.conf source ~/.config/colorizer/colorizer.conf
# if enabled
if [[ "$wall2themes" == "yes" ]];then if [[ "$wall2themes" == "yes" ]];then
#if not invoked by mb-obthemes w2theme colorize
#notify-send.sh "Theme generation" "Enabled"
LOCKED=${wall2themeslock:-false}
if [[ "$LOCKED" != "true" ]];then
#notify-send.sh "Lock" "not set"
# CONKY
case "$wall2themes_conky" in
dark) w2theme conky dark;;
light) w2theme conky light;;
*)
:
;;
esac
# MENUS
case "$wall2themes_menu" in
dark) w2theme menu dark;;
light) w2theme menu light;;
*)
:
;;
esac
# ACCENT_COLOR
mapfile -t w < "$WALLPALDIR/$WALLPAPER.clr"
case "$wall2themes_accent" in
dark)
obtctl theme MBcolors
w2theme accent ${w[1]}
;;
light)
obtctl theme MBcolors
w2theme accent ${w[-1]}
;;
*)
:
;;
esac
# PYRADIO THEME
case "$wall2themes_pyradio" in
dark) w2theme pyradio dark;;
light) w2theme pyradio light;;
*)
:
;;
esac
fi
fi fi
fi fi