Use hyprland log in cache properly

This commit is contained in:
ItsDrike 2022-11-07 22:55:30 +01:00
parent a89c25abb2
commit 504462b592
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -5,7 +5,9 @@
# export QT_QPA_PLATFORM=wayland # export QT_QPA_PLATFORM=wayland
# export XDG_CURRENT_DESKTOP=sway # export XDG_CURRENT_DESKTOP=sway
# export XDG_SESSION_DESKTOP=sway # export XDG_SESSION_DESKTOP=sway
#
HYPRLAND_LOG="${XDG_CACHE_HOME:-$HOME/.cache}/hyprlog.txt"
echo "---------- NEW RUN $(date) ----------" >> ~/.hyprlog.txt echo "---------- NEW RUN $(date) ----------" >> "$HYPRLAND_LOG"
Hyprland 2>&1 | awk '{ print strftime("%s: "), $0, fflush(); }' | tee -a "${XDG_CACHE_HOME:-$HOME/.cache}/.hyprlog.txt" Hyprland 2>&1 | awk '{ print strftime("%s: "), $0, fflush(); }' | tee -a "$HYPRLAND_LOG"
echo "---------- ENDED $(date) ----------" >> ~/.hyprlog.txt echo "---------- ENDED $(date) ----------" >> "$HYPRLAND_LOG"