dotfiles/home/.local/bin/scripts/gui/hyprland/launch-hypr

18 lines
585 B
Text
Raw Normal View History

2022-10-29 23:31:40 +02:00
#!/bin/sh
# export SDL_VIDEODRIVER=wayland
# export _JAVA_AWT_WM_NONREPARENTING=1
# export QT_QPA_PLATFORM=wayland
# export XDG_CURRENT_DESKTOP=sway
# export XDG_SESSION_DESKTOP=sway
2022-11-07 22:55:30 +01:00
#
HYPRLAND_LOG="${XDG_CACHE_HOME:-$HOME/.cache}/hyprlog.txt"
2022-10-29 23:31:40 +02:00
2022-11-07 22:55:30 +01: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-07-23 00:06:03 +02:00
if systemctl --user is-active wayland-session.target &>/dev/null; then
systemctl --user stop wayland-session.target
fi