Extract omarchy-refresh-hyprsunset

This commit is contained in:
David Heinemeier Hansson
2025-08-03 10:45:39 +02:00
parent c35311676c
commit 65ba23d0bb
2 changed files with 7 additions and 4 deletions

4
bin/omarchy-refresh-hyprsunset Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
omarchy-refresh-config hypr/hyprsunset.conf
omarchy-restart-app hyprsunset

View File

@ -1,7 +1,6 @@
echo "Add hyprsunset blue light filter"
if ! command -v hyprsunset &>/dev/null; then
yay -S --noconfirm --needed hyprsunset
omarchy-refresh-hyprsunset
fi
cp -r ~/.local/share/omarchy/config/hypr/hyprsunset.conf ~/.config/hypr/
pkill hyprsunset
setsid uwsm app -- hyprsunset &>/dev/null &