mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-03 19:39:40 +01:00
9b9a7b1768
pywal (also known as wal) lets us change color schemes with a cache directory instead of editing config files directly. This helps us separate the dotfiles from the color schemes. This commit removes explicit color settings from my dotfiles, which are now managed by pywal. Dunst has been added to show any notifications that I may want to use in the future. The colors.Xresources file is used to prevent urxvt from using a depth of 32. My custom colors.vim file has been removed in favor of wal.vim, which solves some problems I had to manually resolve myself and should make things easier to maintain in the long term. Note that pywal also supports base16 color schemes, as well as any other color scheme you can think of.
15 lines
376 B
Bash
15 lines
376 B
Bash
#!/bin/sh
|
|
|
|
# Source the colors from wal
|
|
source "${HOME}/.cache/wal/colors.sh"
|
|
|
|
# Set the border colors
|
|
bspc config normal_border_color "$color1"
|
|
bspc config active_border_color "$color2"
|
|
bspc config focused_border_color "$color15"
|
|
bspc config presel_feedback_color "$color1"
|
|
|
|
# Restart dunst with the new color scheme
|
|
pkill dunst
|
|
dunst -conf "${HOME}/.cache/wal/dunstrc"
|