forked from Shinonome/dots-hyprland
Update virtmon
This commit is contained in:
@@ -46,19 +46,20 @@ x hyprctl output create headless ${vmon_tester}
|
|||||||
echo "Setting geometry..."
|
echo "Setting geometry..."
|
||||||
x hyprctl keyword monitor ${vmon_tester},${VMON_RESOLUTION}@${VMON_FPS},${VMON_POSITION},${VMON_SCALE}${VMON_EXTRA}
|
x hyprctl keyword monitor ${vmon_tester},${VMON_RESOLUTION}@${VMON_FPS},${VMON_POSITION},${VMON_SCALE}${VMON_EXTRA}
|
||||||
|
|
||||||
printf "%s\n" "========================================="
|
e="%s${STY_RST}\n"
|
||||||
printf "%s\n" "Use a VNC client to connect to the virtual monitor."
|
printf "${STY_CYAN}$e" "========================================="
|
||||||
printf "%s\n" " Port: $vnc_port"
|
printf "${STY_BLUE}$e" "Use a VNC client to connect to the virtual monitor."
|
||||||
printf "%s\n" " IP: choose a suitable one from below:"
|
printf "${STY_RED}$e" " Port: $vnc_port"
|
||||||
|
printf "${STY_RED}$e" " IP: choose a suitable one from below:"
|
||||||
LANG=C LC_ALL=C ip -o addr show up | grep -v -E 'docker|veth|virbr' | awk '{split($4,a,"/"); print $2"\t"a[1]}'
|
LANG=C LC_ALL=C ip -o addr show up | grep -v -E 'docker|veth|virbr' | awk '{split($4,a,"/"); print $2"\t"a[1]}'
|
||||||
printf "%s\n" "The status of the virtual monitor:"
|
printf "${STY_YELLOW}$e" "The status of the virtual monitor:"
|
||||||
printf "%s\n" " Resolution: ${VMON_RESOLUTION}"
|
printf "${STY_YELLOW}$e" " Resolution: ${VMON_RESOLUTION}"
|
||||||
printf "%s\n" " Frame rate: ${VMON_FPS}"
|
printf "${STY_YELLOW}$e" " Frame rate: ${VMON_FPS}"
|
||||||
printf "%s\n" "Hint:"
|
printf "${STY_GREEN}$e" "Hint:"
|
||||||
printf "%s\n" " The VNC client will ask you about server address,"
|
printf "${STY_GREEN}$e" " The VNC client will ask you about server address,"
|
||||||
printf "%s\n" " either joined as <IP>:<Port> or separately."
|
printf "${STY_GREEN}$e" " either joined as <IP>:<Port> or separately."
|
||||||
printf "%s\n" " As for username and password, just leave them as empty."
|
printf "${STY_GREEN}$e" " As for username and password, just leave them as empty."
|
||||||
printf "%s\n" "========================================="
|
printf "${STY_CYAN}$e" "========================================="
|
||||||
|
|
||||||
if [ "$RUNNING_IN_BACKGROUND" = true ];then
|
if [ "$RUNNING_IN_BACKGROUND" = true ];then
|
||||||
echo "wayvnc now running in background. Run again with --clean to cleanup."
|
echo "wayvnc now running in background. Run again with --clean to cleanup."
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ For the syntax of following options, see also Hyprland Wiki:
|
|||||||
--pos <pos> Position, by default $VMON_POSITION
|
--pos <pos> Position, by default $VMON_POSITION
|
||||||
--sca <sca> Scale, by default $VMON_SCALE
|
--sca <sca> Scale, by default $VMON_SCALE
|
||||||
--ext <ext> Extra args, e.g. \"transform, 1\"
|
--ext <ext> Extra args, e.g. \"transform, 1\"
|
||||||
|
|
||||||
|
Tip: Recommended VNC client:
|
||||||
|
- Android: AVNC (https://github.com/gujjwal00/avnc)
|
||||||
|
- Linux X11, Windows and MacOS: TigerVNC (https://github.com/TigerVNC/tigervnc)
|
||||||
|
- Linux Wayland: Remmina-VNC (https://remmina.org/remmina-vnc/)
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
# `man getopt` to see more
|
# `man getopt` to see more
|
||||||
|
|||||||
Reference in New Issue
Block a user