2022-10-29 21:31:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-10 18:34:56 +00:00
|
|
|
# export LIBVA_DRIVER_NAME=nvidia
|
|
|
|
# export XDG_SESSION_TYPE=wayland
|
|
|
|
# export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
|
|
|
# export WLR_NO_HARDWARE_CURSORS=1
|
|
|
|
# export GBM_BACKEND=nvidia-drm # can cause issues
|
|
|
|
|
2022-11-07 21:55:30 +00:00
|
|
|
HYPRLAND_LOG="${XDG_CACHE_HOME:-$HOME/.cache}/hyprlog.txt"
|
2022-10-29 21:31:40 +00:00
|
|
|
|
2022-11-07 21:55:30 +00:00
|
|
|
echo "---------- NEW RUN $(date) ----------" >> "$HYPRLAND_LOG"
|
|
|
|
Hyprland 2>&1 | awk '{ print strftime("%s: "), $0, fflush(); }' | tee -a "$HYPRLAND_LOG"
|
|
|
|
echo "---------- ENDED $(date) ----------" >> "$HYPRLAND_LOG"
|
2023-01-25 01:30:17 +00:00
|
|
|
|
2023-07-22 22:06:03 +00:00
|
|
|
if systemctl --user is-active wayland-session.target &>/dev/null; then
|
|
|
|
systemctl --user stop wayland-session.target
|
2023-01-25 01:30:17 +00:00
|
|
|
fi
|