Skip to content

Protecting a window from being closed #10221

Discussion options

You must be logged in to vote

for anyone curious I'm now left with this:

bind = $mainMod, ESCAPE, exec, hyprctl dispatch tagwindow protected activewindow && notify-send -t 500 "Window $(hyprctl activewindow | grep tags | grep protected &>/dev/null && echo protected || echo released)"
bind = $mainMod, Q, exec, hyprctl activewindow | grep tags | grep protected && notify-send -t 500 "Window protected" || hyprctl dispatch killactive

might not be the prettiest, but it works. Thanks vaxerski!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@UltraBlackLinux
Comment options

@vaxerski
Comment options

@UltraBlackLinux
Comment options

Answer selected by UltraBlackLinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants