Add custom wm-ready systemd target, and run wl-gammarelay on it

This commit is contained in:
ItsDrike 2023-01-25 02:30:17 +01:00
parent 109d0d630b
commit 7ae0ced2c0
No known key found for this signature in database
GPG key ID: B014E761034AF742
5 changed files with 12 additions and 2 deletions

View file

@ -11,3 +11,7 @@ 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 wm-ready.target &>/dev/null; then
systemctl --user stop wm-ready.target
fi