Add hyprland support for screenlock
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user