Compare commits

...

2 commits

Author SHA1 Message Date
joygnu f22668c3a2 binds for laptop 2024-07-12 00:09:53 +02:00
joygnu b8b34ac282 vm for laptop 2024-07-11 22:38:18 +02:00
3 changed files with 40 additions and 9 deletions

View file

@ -23,7 +23,8 @@
preserve_split = true; preserve_split = true;
}; };
monitor = "DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10"; monitor = "eDP-1,2560x1440@165.00Hz,0x0,1.2,bitdepth,10";
env = [ env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice" "HYPRCURSOR_THEME = Bibata-Modern-Ice"
@ -112,6 +113,7 @@
"$mod+Shift, 8, movetoworkspace, 8" "$mod+Shift, 8, movetoworkspace, 8"
"$mod+Shift, 9, movetoworkspace, 9" "$mod+Shift, 9, movetoworkspace, 9"
"$mod+Shift, 0, movetoworkspace, 10" "$mod+Shift, 0, movetoworkspace, 10"
]; ];
bindm = [ bindm = [
@ -119,6 +121,13 @@
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"
]; ];
bindl = [
", XF86MonBrightnessUp, exec, brightnessctl set +10%"
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
", XF86AudioRaiseVolume, exec, amixer set Master 5%+"
", XF86AudioLowerVolume, exec, amixer set Master 5%-"
];
general = { general = {
gaps_in = 5; gaps_in = 5;
gaps_out = 8; gaps_out = 8;

View file

@ -1,3 +1,24 @@
#!/bin/bash
# Start the virtual machine named "Windows" using virsh
virsh --connect qemu:///system start Windows virsh --connect qemu:///system start Windows
# Wait for 3 seconds to allow the VM to start up
sleep 3 sleep 3
xfreerdp -grab-keyboard /v:192.168.122.93 /u:joy /p:1 /size:100% /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive
# Get the hostname of the current machine
hostname=$(hostname)
# Set the IP address based on the hostname
if [ "$hostname" == "desktop" ]; then
ip="192.168.122.93"
elif [ "$hostname" == "laptop" ]; then
ip="192.168.122.29"
else
echo "Unknown hostname: $hostname"
exit 1
fi
# Start an RDP session to the VM using xfreerdp
xfreerdp -grab-keyboard /v:$ip /u:joy /p:1 /size:100% /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive

View file

@ -41,6 +41,7 @@
gnome-calculator gnome-calculator
gnome-disk-utility gnome-disk-utility
#random shit #random shit
brightnessctl
gnat14 gnat14
libgccjit libgccjit
zulu17 zulu17