-
Hello, I want to write a script to launch Hyprland after I login in tty, but I can not find a nice way to test whether if hyprland is running or not. And I end up writing this: # ~/.zprofile
if [[ $(hyprctl monitors) == "HYPRLAND_INSTANCE_SIGNATURE was not set! (Is Hyprland running?)" ]]; then
exec Hyprland
fi This looks not very beautiful, so I would like to ask if there is a better way to achieve this. P.S. this script works very well, I just think it is not so beautiful and elegant. |
Beta Was this translation helpful? Give feedback.
Answered by
vaxerski
Oct 3, 2022
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
swwind
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
printenv HYPRLAND_INSTANCE_SIGNATURE