From e68481decea4fc8f8664191ea0c3df35db7f1715 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 27 Feb 2024 11:23:19 +0100 Subject: [PATCH] Add loadconfig.sh --- hypr/scripts/loadconfig.sh | 2 ++ hypr/scripts/swayidle.sh | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) create mode 100755 hypr/scripts/loadconfig.sh delete mode 100755 hypr/scripts/swayidle.sh diff --git a/hypr/scripts/loadconfig.sh b/hypr/scripts/loadconfig.sh new file mode 100755 index 0000000..a51ce6d --- /dev/null +++ b/hypr/scripts/loadconfig.sh @@ -0,0 +1,2 @@ +#!/bin/bash +hyprctl reload \ No newline at end of file diff --git a/hypr/scripts/swayidle.sh b/hypr/scripts/swayidle.sh deleted file mode 100755 index 529d962..0000000 --- a/hypr/scripts/swayidle.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -pgrep_output=$(pgrep swayidle) -pgrep_arr=($pgrep_output) -if [[ "${#pgrep_arr[@]}" == "1" ]] || [[ "${#pgrep_arr[@]}" == "0" ]]; then - echo "Swayidle is not running. Starting Swayidle." - ./lockscreentime.sh -else - echo "Swayidle is running. Killing swayidle." - killall swayidle -fi