From 612a000a96ab8ef15d8d5045273131534e18f575 Mon Sep 17 00:00:00 2001 From: joygnu Date: Fri, 5 Jul 2024 22:11:08 +0200 Subject: [PATCH] remote --- home/hyprland/default.nix | 1 + home/hyprland/vm.sh | 3 +++ modules/vm/default.nix | 1 + 3 files changed, 5 insertions(+) create mode 100755 home/hyprland/vm.sh diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index e6ea133..530a45c 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -53,6 +53,7 @@ "$mod, M, exec, mbsync -a && alacritty -e neomutt" "$mod, C, exec, hyprpicker -a" "$mod, A, exec, rofi -show drun" + "$mod+Shift, W, exec, bash ~/nix/home/hyprland/vm.sh" "$mod+Shift, Z, exec, grim - | swappy -f -" "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh" "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" diff --git a/home/hyprland/vm.sh b/home/hyprland/vm.sh new file mode 100755 index 0000000..b9cc82f --- /dev/null +++ b/home/hyprland/vm.sh @@ -0,0 +1,3 @@ +virsh --connect qemu:///system start Windows +sleep 3 +xfreerdp -grab-keyboard /v:192.168.122.93 /u:joy /p:1 /size:100% /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive diff --git a/modules/vm/default.nix b/modules/vm/default.nix index 4596ad1..daae9e3 100644 --- a/modules/vm/default.nix +++ b/modules/vm/default.nix @@ -17,6 +17,7 @@ win-virtio win-spice virtiofsd + freerdp #gnome.adwaita-icon-theme ];