Add loadconfig.sh

This commit is contained in:
Stephan Raabe 2024-02-27 11:23:19 +01:00
parent 01c90fa16d
commit e68481dece
2 changed files with 2 additions and 11 deletions

2
hypr/scripts/loadconfig.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
hyprctl reload

View File

@ -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