Remove lol-watcher.sh

This commit is contained in:
Viyurz 2024-03-06 16:45:59 +01:00
parent 345dd0bf50
commit fcedbb6997
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -1,13 +0,0 @@
#!/bin/sh
# This script + pgrep command
[[ $(pgrep "lol-watcher.sh" | wc -l) -gt 2 ]] && exit 1
while true; do
if hyprctl clients | grep -qe 'title: League of Legends (TM) Client'; then
hyprctl monitors | grep -qe 'HDMI-A-1' && hyprctl keyword monitor HDMI-A-1,disable
else
hyprctl monitors | grep -qe 'HDMI-A-1' || hyprctl keyword monitor HDMI-A-1,1920x1080@60,1920x0,1
fi
sleep 5
done