Hyprland-dotfiles/scripts/looking-glass.sh

21 lines
767 B
Bash
Raw Normal View History

2023-03-02 09:28:25 -05:00
#!/bin/bash
2023-03-09 03:25:31 -05:00
# _ _ _ ____ _
# | | ___ ___ | | _(_)_ __ __ _ / ___| | __ _ ___ ___
# | | / _ \ / _ \| |/ / | '_ \ / _` | | | _| |/ _` / __/ __|
# | |__| (_) | (_) | <| | | | | (_| | | |_| | | (_| \__ \__ \
# |_____\___/ \___/|_|\_\_|_| |_|\__, | \____|_|\__,_|___/___/
# |___/
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
2023-03-02 09:28:25 -05:00
2023-08-20 11:34:53 -04:00
tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}')
if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ])
then
virsh --connect qemu:///system start win11
echo "Virtual Machine win11 is starting..."
sleep 3
fi
2023-03-02 09:28:25 -05:00
looking-glass-client &
exit