Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Dec 14, 2022
2 parents f3cf0ed + 644ec74 commit e5d4c98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Overview
Ever wanted a way to jump to the `Nth` desktop on Windows 10 or 11 with a keyboard shortcut? WinJump maps `WINDOWS_KEY + <NUMBER>` as a shortcut for the first 10 desktops in Windows.

WinJump uses the excellent [VirtualDesktop](https://github.com/MScholtes/VirtualDesktop) library. Most other solutions use an [AutoHotKey](https://www.autohotkey.com/) based solution which automates pressing the Windows built-in `WINDOWS_KEY + CTRL + [LEFT ARROW OR RIGHT ARROW]` shortcut a number of times in a row.
This often results in glitchly visuals and lagging while jumping to the desktop you want. VirtualDesktop instead immediately jumps to the desired desktop.

# Installation
## Supported versions
Currently, the following versions of Windows are supported:
| Windows Edition | Version |
| ----------- | ----------- |
| Windows 10 | 1607-1709, 1803, 1809 - 21H2 |
| Windows 11 | 21H2, 22H2 |
## How to install
1) [Download](https://github.com/widavies/WinJump/releases/download/1.0.0/Release_1_0_0.zip)
2) Extract and run `setup.exe`
3) WinJump should start automatically (otherwise, press `WINDOWS_KEY` and search for `"WinJump"` and start it that way)
4) To make WinJump run at startup:
1) Press the windows key and search for `"WinJump"`
2) Right click > Open file location
3) Copy the file named "WinJump"
4) Press `WINDOWS_KEY + R` and type `shell:startup`
5) Paste the file you copied into this directory.
5 changes: 4 additions & 1 deletion WinJump/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ internal static class Program {

[STAThread]
public static void Main() {
// Because windows_key + number is already a bulit in Windows shortcut, we need to kill explorer
// (explorer is the process that registers the shortcut) so that it releases the shortcut.
// Then, we can register it and restart explorer.
var killExplorer = Process.Start("cmd.exe", "/c taskkill /f /im explorer.exe");

killExplorer?.WaitForExit();
Expand Down Expand Up @@ -98,4 +101,4 @@ public void Dispose() {
}

}
}
}

0 comments on commit e5d4c98

Please sign in to comment.