This commit is contained in:
Stephan Raabe 2023-09-22 17:45:38 +02:00
parent 767413df5b
commit 0eb669548b
2 changed files with 13 additions and 2 deletions

View File

@ -32,6 +32,7 @@ exec-once = ~/dotfiles/scripts/updatewal-swww.sh
exec-once = ~/dotfiles/hypr/gtk.sh exec-once = ~/dotfiles/hypr/gtk.sh
exec-once = ~/dotfiles/waybar/launch.sh exec-once = ~/dotfiles/waybar/launch.sh
exec-once = hyprctl setcursor Bibata-Modern-Classic 24 exec-once = hyprctl setcursor Bibata-Modern-Classic 24
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# ----------------------------------------------------- # -----------------------------------------------------
# Load pywal color file # Load pywal color file
@ -211,3 +212,4 @@ misc {
disable_hyprland_logo = true disable_hyprland_logo = true
disable_splash_rendering = true disable_splash_rendering = true
} }

View File

@ -9,11 +9,20 @@
# by Stephan Raabe (2023) # by Stephan Raabe (2023)
# ----------------------------------------------------- # -----------------------------------------------------
if [ -f ~/private/win11-credentials.sh ]; then
echo "Credential file exists. Using the file."
source ~/private/win11-credentials.sh
else
win11user="USER"
win11pass="PASS"
fi
tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}') tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}')
if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ]) if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ])
then then
virsh --connect qemu:///system start win11 virsh --connect qemu:///system start win11
echo "Virtual Machine win11 is starting..." echo "Virtual Machine win11 is starting... Waiting 45s for booting up."
notify-send "Virtual Machine win11 is starting..." "Waiting 45s for booting up." notify-send "Virtual Machine win11 is starting..." "Waiting 45s for booting up."
sleep 45 sleep 45
else else
@ -21,4 +30,4 @@ else
echo "Starting xfreerdp now..." echo "Starting xfreerdp now..."
fi fi
xfreerdp -grab-keyboard /v:192.168.122.44 /size:100% /cert-ignore /u:raabe /p:SECRET /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive & xfreerdp -grab-keyboard /v:192.168.122.44 /size:100% /cert-ignore /u:$win11user /p:$win11pass /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive &