hyprland-dotfiles/scripts/looking-glass.sh

21 lines
767 B
Bash
Raw Permalink Normal View History

2023-03-02 14:28:25 +00:00
#!/bin/bash
2023-03-09 08:25:31 +00:00
# _ _ _ ____ _
# | | ___ ___ | | _(_)_ __ __ _ / ___| | __ _ ___ ___
# | | / _ \ / _ \| |/ / | '_ \ / _` | | | _| |/ _` / __/ __|
# | |__| (_) | (_) | <| | | | | (_| | | |_| | | (_| \__ \__ \
# |_____\___/ \___/|_|\_\_|_| |_|\__, | \____|_|\__,_|___/___/
# |___/
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
2023-03-02 14:28:25 +00:00
2023-08-20 15:34:53 +00: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 14:28:25 +00:00
looking-glass-client &
exit