Files
nix/scripts/hot-reload.sh
Kris 8ed9bd9618 a
2026-03-28 20:49:12 +02:00

23 lines
430 B
Bash
Executable File

#!/bin/bash
hyprctl reload > /dev/null &
ROBLOX_PID="$(pidof sober)"
HYPRPAPER_PID="$(pidof hyprpaper)"
# echo ${#ROBLOX_PID}
if [ ${#ROBLOX_PID} -lt 1 ]; then
trap "rm /tmp/.regretevator_state" EXIT > /dev/null
fi
# shit
if [[ "$(hostname)" == "gentoo" ]]; then
if [ ${#HYPRPAPER_PID} -lt 1 ]; then
hyprctl dispatch exec hyprpaper
sleep 1
bash /etc/nixos/scripts/load-wallpaper.sh
fi
fi