mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-15 04:37:18 +00:00
18 lines
608 B
Bash
Executable file
18 lines
608 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# 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
|
|
|
|
HYPRLAND_LOG="${XDG_CACHE_HOME:-$HOME/.cache}/hyprlog.txt"
|
|
|
|
echo "---------- NEW RUN $(date) ----------" >> "$HYPRLAND_LOG"
|
|
Hyprland 2>&1 | awk '{ print strftime("%s: "), $0, fflush(); }' | tee -a "$HYPRLAND_LOG"
|
|
echo "---------- ENDED $(date) ----------" >> "$HYPRLAND_LOG"
|
|
|
|
if systemctl --user is-active wayland-session.target &>/dev/null; then
|
|
systemctl --user stop wayland-session.target
|
|
fi
|