From fcedbb6997d8ea973a1e920273522d5635e2d03a Mon Sep 17 00:00:00 2001 From: Viyurz Date: Wed, 6 Mar 2024 16:45:59 +0100 Subject: [PATCH] Remove lol-watcher.sh --- .scripts/lol-watcher.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 .scripts/lol-watcher.sh diff --git a/.scripts/lol-watcher.sh b/.scripts/lol-watcher.sh deleted file mode 100755 index 4435044..0000000 --- a/.scripts/lol-watcher.sh +++ /dev/null @@ -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