dotfiles/scripts/set-desktop-theme
2024-04-07 17:44:55 -06:00

27 lines
658 B
Bash
Executable File

#!/usr/bin/env bash
# Favorites:
# - horizon-terminal-dark
# - heetch
# - blueforest
# - tarot
export SCHEME=$1
shchemes install_tinted_scheme
shchemes inject "$HOME/.config/qutebrowser/config.py"
pkill -HUP qutebrowser
BSPWM_THEME="$HOME/.config/bspwm/colors"
shchemes create_theme bspwm > "$BSPWM_THEME"
"$BSPWM_THEME"
shchemes inject "$HOME/.config/alacritty/alacritty.toml"
shchemes inject "$HOME/.config/rofi/config.rasi" "//"
WALLPAPER_OUT="$HOME/.wallpaper.png"
shchemes create_theme imagemagick \
| convert ~/pictures/wallpapers/tradin.jpg -dither FloydSteinberg -colorspace srgb -remap txt:- "$WALLPAPER_OUT"
feh --bg-scale "$WALLPAPER_OUT"