wal: Modularize done.sh

Instead of trying to do everything at once, done.sh will instead call
other scripts for each individual program that needs to be manipulated.
This commit is contained in:
Donovan Glover 2018-11-19 19:39:36 -05:00
parent 186495c97e
commit 1c44cd55f6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 24 additions and 19 deletions

10
bspwm/.config/bspwm/wal.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Source the colors from wal
source ~/.cache/wal/colors.sh
# Set the border colors
bspc config normal_border_color "$color8"
bspc config active_border_color "$color2"
bspc config focused_border_color "$color7"
bspc config presel_feedback_color "$color7"

8
dunst/.config/dunst/wal.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# Symlink dunst config
ln -sf ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc
# Restart dunst with the new color scheme
pkill dunst
dunst &

View File

@ -1,22 +1,9 @@
#!/bin/sh
# ===================
# ====== bspwm ======
# ===================
if [ -e ~/.config/bspwm/wal.sh ]; then
~/.config/bspwm/wal.sh
fi
# Source the colors from wal
source "${HOME}/.cache/wal/colors.sh"
# Set the border colors
bspc config normal_border_color "$color8"
bspc config active_border_color "$color2"
bspc config focused_border_color "$color7"
bspc config presel_feedback_color "$color7"
# Symlink dunst config
mkdir -p "${HOME}/.config/dunst"
ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc"
# Restart dunst with the new color scheme
pkill dunst
dunst &
if [ -e ~/.config/dunst/wal.sh ]; then
~/.config/dunst/wal.sh
fi