mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-11 09:49:30 -05:00
Add subcmd virtmon (WIP)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# This script is meant to be sourced.
|
||||
# It's not for directly running.
|
||||
|
||||
# shellcheck shell=bash
|
||||
|
||||
readarray -t vmon < <(hyprctl -j monitors all | jq -r '.[] | select(.name | test("^HEADLESS-")) | .name')
|
||||
|
||||
if [ "${#vmon[@]}" -gt 0 ]; then
|
||||
printf '%s\n' "${vmon[@]}"
|
||||
else
|
||||
echo "no headless monitors found" >&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user