mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 19:30:51 +01:00
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:
parent
186495c97e
commit
1c44cd55f6
10
bspwm/.config/bspwm/wal.sh
Executable file
10
bspwm/.config/bspwm/wal.sh
Executable 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
8
dunst/.config/dunst/wal.sh
Executable 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 &
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user