manager/config/X11/xinitrc
Dan Anglin 0feb20c906
feat: setup logrotate for the $XDG_STATE_HOME/logs
- Add logrotate config for the new $XDG_STATE_HOME/logs directory.
- Run logrotate before starting DWM (logs are rotated if required by the
  configuration).
2022-05-22 10:47:31 +01:00

20 lines
435 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 dwm