manager/config/X11/xinitrc
Dan Anglin 7aa9304734
feat: add custom startdwm script to allow restarts
Modified script from the Archwiki which runs DWM in a loop so that we
can restart the window manager we make changes to the binary.
2022-05-22 12:45:44 +01:00

20 lines
440 B
Bash

#!/usr/bin/env bash
[[ -f "${HOME}/.bashrc" ]] && source "${HOME}/.bashrc"
# Start dunst
if [ -x "$( command -v dunst )" ]; then
dunst &
fi
# Load the wallpaper
xwallpaper --stretch ~/.local/config/wallpaper/wallpaper.png &
# Rotate the home logs with logrotate
logrotate \
--state=${XDG_STATE_HOME}/logrotate/status \
--log=${LOG_HOME}/logrotate.log \
${XDG_CONFIG_HOME}/logrotate/logrotate.conf \
&
exec startdwm