Add hyprland support for screenlock

This commit is contained in:
2023-10-22 11:35:52 +02:00
parent eb5db8a34a
commit d2e9e775ec

View File

@ -21,7 +21,14 @@ for cmd in $OPTIONAL_CMDS
end
end
{% if hostname == "buran" %}
# list display outputs using hyprctl
set outputs (hyprctl monitors | rg Monitor | sed 's/Monitor //' | sed 's/ (ID.*$//')
{% else %}
# list display outputs using swaymsg
set outputs (swaymsg -t get_outputs -r | grep "name" | sed 's/^.*"name": "//' | sed 's/",$//')
{% end %}
# take one screenshot of each output
for output in $outputs