feat: gui.log history

This commit is contained in:
AngeD 2023-03-31 14:21:59 +02:00
parent 9e3cbee8e3
commit febe5cacfc
4 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,9 @@
#!/bin/sh
[ "$XDG_VTNR" = 1 ] && exec startx > "$HOME/.gui.log" 2>&1
GUILOG="$HOME/.local/share/xorg/gui.log"
touch "$GUILOG"
mv "$GUILOG" "$GUILOG.old"
[ "$XDG_VTNR" = 1 ] && exec startx > "$GUILOG" 2>&1
#[ "$XDG_VTNR" = 1 ] && export XDG_CURRENT_DESKTOP=sway && exec sway > "$HOME/.gui.log" 2>&1