Add logging
This commit is contained in:
parent
2a2dc0a021
commit
6dbb4515ec
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
4
xinitrc
4
xinitrc
|
@ -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
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue