summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-10-17 20:03:09 +0200
committerkkard2 <[email protected]>2025-10-17 20:03:09 +0200
commit3f00c41f088518da0f22e96b4425df2c642237e9 (patch)
treebff60ddc0a0b1bba5c9b9e49167c09229d5f4a01
parente2793a684c990ac2a5ff23cefda83d6bf18c8da3 (diff)
remove vds i wasn't using
-rw-r--r--_windows/VirtualDesktopSwitcher/.gitignore2
-rw-r--r--_windows/VirtualDesktopSwitcher/Program.cs43
-rw-r--r--_windows/VirtualDesktopSwitcher/VirtualDesktopSwitcher.csproj16
3 files changed, 0 insertions, 61 deletions
diff --git a/_windows/VirtualDesktopSwitcher/.gitignore b/_windows/VirtualDesktopSwitcher/.gitignore
deleted file mode 100644
index cd42ee3..0000000
--- a/_windows/VirtualDesktopSwitcher/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/
-obj/
diff --git a/_windows/VirtualDesktopSwitcher/Program.cs b/_windows/VirtualDesktopSwitcher/Program.cs
deleted file mode 100644
index eba2e44..0000000
--- a/_windows/VirtualDesktopSwitcher/Program.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System.Runtime.InteropServices;
-using WindowsDesktop;
-
-
-
-class Program
-{
- [DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow();
-
- private static int RealIndex(int index)
- {
- if (index == 0)
- return 9;
-
- return index - 1;
- }
-
- [STAThread]
- public static int Main(string[] args)
- {
- if (args[0] == "prepare")
- {
- while (VirtualDesktop.GetDesktops().Length < 10)
- VirtualDesktop.Create();
- return 0;
- }
- if (args[0] == "switch")
- {
- var desktops = VirtualDesktop.GetDesktops();
- desktops[RealIndex(int.Parse(args[1]))].Switch();
- return 0;
- }
- if (args[0] == "move")
- {
- var desktops = VirtualDesktop.GetDesktops();
- var targetDesktop = desktops[RealIndex(int.Parse(args[1]))];
- VirtualDesktop.MoveToDesktop(GetForegroundWindow(), targetDesktop);
- }
-
- return 1;
- }
-}
-
diff --git a/_windows/VirtualDesktopSwitcher/VirtualDesktopSwitcher.csproj b/_windows/VirtualDesktopSwitcher/VirtualDesktopSwitcher.csproj
deleted file mode 100644
index b9d3539..0000000
--- a/_windows/VirtualDesktopSwitcher/VirtualDesktopSwitcher.csproj
+++ /dev/null
@@ -1,16 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
- <PublishSingleFile>true</PublishSingleFile>
- <SelfContained>true</SelfContained>
- <ImplicitUsings>enable</ImplicitUsings>
- <Nullable>enable</Nullable>
- </PropertyGroup>
-
- <ItemGroup>
- <PackageReference Include="VirtualDesktop" Version="5.0.5" />
- </ItemGroup>
-
-</Project>