Add logging

This commit is contained in:
M1dgard 2018-04-30 20:49:16 +02:00
parent 2a2dc0a021
commit 6dbb4515ec
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
3 changed files with 4 additions and 4 deletions

View file

@ -249,7 +249,7 @@ exec --no-startup-id nm-applet
exec --no-startup-id unclutter -idle 3
# battery monitor script
exec --no-startup-id $HOME/Programs/own/battery/monitor.py || notify-send -u critical -i battery -a i3 "Failed to start battery monitor" "Battery monitor had a non-zero exit code."
exec --no-startup-id "$HOME/Programs/own/battery/monitor.py &>$HOME/.log/my-i3-desktop/battery-monitor.log || notify-send -u critical -i battery -a i3 'Failed to start battery monitor' 'Battery monitor had a non-zero exit code.'"
# set background

View file

@ -18,7 +18,7 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
[[ -n $MONITOR ]] || MONITOR="$(xrandr | grep " connected" | head -n1 | cut -d ' ' -f1)"
[[ -n $MONITOR ]] && export MONITOR
polybar --config="$HOME/.config/polybar/config.ini" midbard
polybar --config="$HOME/.config/polybar/config.ini" midbard &>$HOME/.log/my-i3-desktop/polybar-midbard.log
)
echo "Polybar launched."

View file

@ -26,8 +26,8 @@ case "$DE_CHOICE" in
i3)
XDG_CONFIG_HOME=$HOME/.config
compton --config $XDG_CONFIG_HOME/compton/config & # compositor
dunst -config $XDG_CONFIG_HOME/dunst/dunstrc & # notification daemon
compton --config $XDG_CONFIG_HOME/compton/config & &>$HOME/.log/my-i3-desktop/compton.log # compositor
dunst -config $XDG_CONFIG_HOME/dunst/dunstrc & &>$HOME/.log/my-i3-desktop/dunst.log # notification daemon
exec i3
;;