diff --git a/tree/.local/bin/screenlock.tpl b/tree/.local/bin/screenlock.tpl index a108835..1c69662 100755 --- a/tree/.local/bin/screenlock.tpl +++ b/tree/.local/bin/screenlock.tpl @@ -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