This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/de/dunst/build_config.bash
2017-04-20 08:16:02 -05:00

11 lines
365 B
Bash
Executable file

#!/usr/bin/env bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
source "$DOTFILES_PATH/de/bar/bar.bash" --just-vars=1
export BG_COLOR=$(xrdb -query | sed -ne 's/.*color0:\s*\(.*\).*$/\1/p' | head -n 1)
export FG_COLOR=$(xrdb -query | sed -ne 's/.*color7:\s*\(.*\).*$/\1/p' | head -n 1)
envsubst < "$DIR/dunst-config.dev.h.template" > "$DIR/config.dev.h"