diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index e810e89..1c8ec74 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -32,6 +32,7 @@ exec-once = ~/dotfiles/scripts/updatewal-swww.sh exec-once = ~/dotfiles/hypr/gtk.sh exec-once = ~/dotfiles/waybar/launch.sh exec-once = hyprctl setcursor Bibata-Modern-Classic 24 +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # ----------------------------------------------------- # Load pywal color file @@ -211,3 +212,4 @@ misc { disable_hyprland_logo = true disable_splash_rendering = true } + diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh index 176719e..f616c8b 100755 --- a/scripts/launchvm.sh +++ b/scripts/launchvm.sh @@ -9,11 +9,20 @@ # 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}') + if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ]) then 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." sleep 45 else @@ -21,4 +30,4 @@ else echo "Starting xfreerdp now..." 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 &