Files
nix/scripts/hot-reload.sh
Kris c87bd55ce3 a
2026-03-28 18:31:43 +02:00

26 lines
593 B
Bash
Executable File

#!/bin/bash
pkill -9 waybar > /dev/null
# hyprctl dispatch exec "GTK_THEME=Adwaita waybar -c ~/config/config/waybar/config -s ~/config/config/waybar/style.css" > /dev/null &
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