]> apps.delaporte.us Git - dotfiles.git/commitdiff
Merge branch 'main' of https://github.com/edthedev/dotfiles
authorEdward Delaporte <edward@delaporte.us>
Fri, 29 Oct 2021 23:42:53 +0000 (18:42 -0500)
committerEdward Delaporte <edward@delaporte.us>
Fri, 29 Oct 2021 23:42:53 +0000 (18:42 -0500)
pi/install/rdp.sh
win/stay_awake.ps1 [new file with mode: 0644]

index 5bf5f043f598901707a9428afdc91dc1bb6d53dc..ca235b90013d4ed7638bed6a5e1668a0974e6b5f 100644 (file)
@@ -1 +1 @@
-sudo apt install xrdp
+sudo apt install xrdp remmina
diff --git a/win/stay_awake.ps1 b/win/stay_awake.ps1
new file mode 100644 (file)
index 0000000..aba956a
--- /dev/null
@@ -0,0 +1,10 @@
+$wsh = New-Object -ComObject WScript.Shell
+$minutes = 15
+do{
+       "Staying awake for $minutes minutes"
+  $minutes-=1;
+  # Send Shift+F15
+  $wsh.SendKeys('+{F15}')
+  Start-Sleep -seconds 59
+}until($minutes -lt 0)
+# Thank you to http://www.zhornsoftware.co.uk/caffeine/