[feature] add logging for xinit
This commit is contained in:
parent
fc8adcbcda
commit
3d6ccf3f08
|
@ -70,9 +70,14 @@ export SSH_AUTH_SOCK=$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11
|
||||||
autorandr --change --force
|
autorandr --change --force
|
||||||
|
|
||||||
# restart dwm if it existed without error
|
# restart dwm if it existed without error
|
||||||
|
echo $$(date "+%Y%m%d-%H%M%S") '=============== xrdb -query' >> /tmp/xinit.log
|
||||||
|
xrdb -query >> /tmp/dwm.log
|
||||||
|
echo $$(date "+%Y%m%d-%H%M%S") '=============== enter dwm' >> /tmp/xinit.log
|
||||||
while :; do
|
while :; do
|
||||||
ssh-agent dwm 2>/tmp/dwm.log || break
|
ssh-agent dwm 2>>/tmp/dwm.log || break
|
||||||
|
echo $$(date "+%Y%m%d-%H%M%S") '=============== restart dwm' >> /tmp/xinit.log
|
||||||
done
|
done
|
||||||
|
echo $$(date "+%Y%m%d-%H%M%S") '=============== exit xinit' >> /tmp/xinit.log
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
cat <<'EOT' > ~/.profile
|
cat <<'EOT' > ~/.profile
|
||||||
|
@ -82,7 +87,9 @@ export PATH=$HOME/dotfiles/bin:$HOME/.local/bin:$PATH
|
||||||
export VIM_MODE=enhanced
|
export VIM_MODE=enhanced
|
||||||
|
|
||||||
# auto startx
|
# auto startx
|
||||||
[ -z "$DISPLAY" -a -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq "1" ] && exec startx
|
[ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq "1" ] \
|
||||||
|
&& echo $(date "+%Y%m%d-%H%M%S") '=============== auto start xinit' >> /tmp/xinit.log \
|
||||||
|
&& startx
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user