diff --git a/bin/dunstctl b/bin/dunstctl index b85bbc9..0e649d1 100755 --- a/bin/dunstctl +++ b/bin/dunstctl @@ -2,7 +2,7 @@ set -o nounset -_logfile="$LOGDIR/dunstctl.log" +_logfile="$XDG_RUNTIME_DIR/dunstctl.log" log() { printf '[%s] %s\n' "$(date -uIseconds)" "$*" >> "$_logfile" diff --git a/i3/scripts/i3exit b/i3/scripts/i3exit index 8fbdc6b..08ec83f 100755 --- a/i3/scripts/i3exit +++ b/i3/scripts/i3exit @@ -2,7 +2,7 @@ ### From http://www.archlinux.org/index.php/i3 -_logfile="$LOGDIR/i3/i3exit.log" +_logfile="$XDG_RUNTIME_DIR/i3exit.log" touch "$_logfile" diff --git a/user.yml b/user.yml index 74e593c..36f9e27 100644 --- a/user.yml +++ b/user.yml @@ -244,7 +244,6 @@ path: "{{ item }}" with_items: - ~/tmp - - ~/.var/log - name: stat ~/bin stat: diff --git a/x/xinitrc b/x/xinitrc index b6b7e49..6aaa628 100644 --- a/x/xinitrc +++ b/x/xinitrc @@ -1,8 +1,6 @@ #!/bin/bash -export LOGFILE="$LOGDIR/xinitrc.log" - -mkdir -p "${LOGDIR}/i3" +export LOGFILE="$XDG_RUNTIME_DIR/xinitrc.log" log() { echo "[$(date +%FT%T)] $*" >> "$LOGFILE" diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index 0f19593..6a28c54 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -19,7 +19,6 @@ export LESS="FRX" export WINEPATH="$HOME/games/wine" -export LOGDIR="$HOME/.var/log" export BINDIR="$HOME/bin" export LANG=en_US.UTF-8