manager/.helpers/dunst/generate-dunst-config

14 lines
493 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
GIT_ROOT_DIR="$( cd "$( dirname $0 )/../.." && pwd )"
DUNST_DOTFILES_SOURCE_DIR="${GIT_ROOT_DIR}/config/dunst"
DUNST_DOTFILES_DESTINATION_DIR="${XDG_CONFIG_HOME}/dunst"
if ! [ -d ${DUNST_DOTFILES_DESTINATION_DIR} ]; then
echo "INFO: Creating directory ${DUNST_DOTFILES_DESTINATION_DIR}"
mkdir ${DUNST_DOTFILES_DESTINATION_DIR}
fi
rsync -avh ${DUNST_DOTFILES_SOURCE_DIR}/dunstrc ${DUNST_DOTFILES_DESTINATION_DIR}/dunstrc && chmod a-rwx,u+rw $_