-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Commit: vim keys, powermenu dialog, programs, window basic co…
…ntrols, workspaces (external script) and license.
- Loading branch information
lu0
committed
Nov 20, 2021
0 parents
commit 5af9c54
Showing
10 changed files
with
874 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
desktop.files.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "workspaces"] | ||
path = workspaces | ||
url = https://github.com/lu0/windows-desktop-switcher |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# autohotkey-config | ||
|
||
AutoHotKey scripts I use to mimic my Linux Keybindings on Windows 10. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#NoTrayIcon | ||
|
||
; This script maps some keyboard combinations (latam layout) | ||
; preceded by AltGr to combinations I use on Linux: | ||
; hjklio to navigation keys, | ||
; <> to parenthesis, | ||
; Special characters (caret, backtick, tilde, at sign). | ||
|
||
; Detect if AltGr is pressed | ||
LControl & RAlt:: AltGR = 1 | ||
LControl & RAlt Up:: AltGR = 0 | ||
|
||
#If AltGR = 1 | ||
|
||
; Standalone | ||
h:: Send {Left} | ||
j:: Send {Down} | ||
k:: Send {Up} | ||
l:: Send {Right} | ||
i:: Send {Home} | ||
o:: Send {End} | ||
|
||
; Shift + | ||
+h:: Send +{Left} | ||
+j:: Send +{Down} | ||
+k:: Send +{Up} | ||
+l:: Send +{Right} | ||
+i:: Send +{Home} | ||
+o:: Send +{End} | ||
|
||
; Ctrl + | ||
^h:: Send ^{Left} | ||
^j:: Send ^{Down} | ||
^k:: Send ^{Up} | ||
^l:: Send ^{Right} | ||
^i:: Send ^{Home} | ||
^o:: Send ^{End} | ||
|
||
; Ctrl + Shift + | ||
^+h:: Send ^+{Left} | ||
^+j:: Send ^+{Down} | ||
^+k:: Send ^+{Up} | ||
^+l:: Send ^+{Right} | ||
^+i:: Send ^+{Home} | ||
^+o:: Send ^+{End} | ||
|
||
; Ctrl + Alt + | ||
^!h:: Send ^!{Left} | ||
^!j:: Send ^!{Down} | ||
^!k:: Send ^!{Up} | ||
^!l:: Send ^!{Right} | ||
^!i:: Send ^!{Home} | ||
^!o:: Send ^!{End} | ||
|
||
; Ctrl + Super + | ||
^#h:: Send ^!{Left} | ||
^#j:: Send ^!{Down} | ||
^#k:: Send ^!{Up} | ||
^#l:: Send ^!{Right} | ||
^#i:: Send ^!{Home} | ||
^#o:: Send ^!{End} | ||
|
||
; Shift + Super + | ||
+#h:: Send ^!{Left} | ||
+#j:: Send ^!{Down} | ||
+#k:: Send ^!{Up} | ||
+#l:: Send ^!{Right} | ||
+#i:: Send ^!{Home} | ||
+#o:: Send ^!{End} | ||
|
||
; Map altGr + <> to parenthesis | ||
<:: Send {(} | ||
>:: Send {)} | ||
|
||
; Restore special characters I use frequently | ||
{:: Send {^} | ||
}:: Send {``} | ||
+:: Send {~} | ||
q:: Send {@} | ||
|
||
#If |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#NoTrayIcon | ||
|
||
; This scripts flips the functionality of CapsLock and Escape keys | ||
|
||
CapsLock::Esc | ||
Esc::CapsLock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#NoTrayIcon | ||
#NoEnv | ||
|
||
; This script shows the Shutdown Dialog when pressing Super + P, | ||
; the same keybinding I use on Linux | ||
|
||
#p::ShowPowermenu() | ||
|
||
; Snippet taken and adjusted from | ||
; https://www.autohotkey.com/boards/viewtopic.php?t=81268 | ||
ShowPowermenu(ChooseString:="") { | ||
ComObjCreate("Shell.Application").ShutdownWindows() | ||
WinWait, Shut Down Windows | ||
Control, ChooseString, %ChooseString%, ComboBox1 | ||
WinSet, AlwaysOnTop, 1 | ||
WinWaitClose | ||
Return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#NoTrayIcon | ||
|
||
; This scripts maps ctrl + alt + <letter> to the programs I use frequently. | ||
|
||
; Files (File Manager) | ||
; ctrl + alt + f | ||
^!f:: | ||
Run files | ||
return | ||
|
||
|
||
; WSL (Terminal) | ||
; ctrl + alt + t | ||
^!t:: | ||
Run wsl | ||
return | ||
|
||
|
||
; Vivaldi (web browser) | ||
; ctrl + alt + w | ||
^!w:: | ||
Run vivaldi | ||
return | ||
|
||
|
||
; Visual Studio Code | ||
; ctrl + alt + v | ||
^!v:: | ||
Run code | ||
return | ||
|
||
|
||
; Outlook Mail | ||
; ctrl + alt + m | ||
^!m:: | ||
Run outlook | ||
return | ||
|
||
|
||
; Microsoft Teams | ||
; ctrl + alt + shift + m | ||
^!+m:: | ||
Run C:\Users\Lucero_Alvarado\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe" | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#NoTrayIcon | ||
|
||
; Keybindings I use on Linux to close, minimize, maximize and snap the active window. | ||
; Must enable "Zone index" on FancyZones (Windows Powertoys) and use a gap greater than 0. | ||
|
||
; Close | ||
; ctrl + super + space | ||
^#Space:: | ||
PostMessage, 0x112, 0xF060,,, A | ||
return | ||
|
||
; Minimize | ||
; left alt + x | ||
LAlt & x:: | ||
Send #{down} | ||
return | ||
|
||
; Toggle maximize/unmaximize | ||
; left alt + space | ||
LAlt & space:: | ||
WinGetTitle, winname, A | ||
WinGetPos, X, Y, Width, Height, %winname% | ||
if (Y > 0) | ||
Send #{up} | ||
else if (Y <= 0) | ||
Send #{down} | ||
return | ||
|
||
; Snap/move to the left | ||
; alt + a | ||
LAlt & a:: | ||
if not GetKeyState("Shift") | ||
Send #{left} | ||
else | ||
; Alt + Shift + A | ||
Send !+{a} | ||
return | ||
|
||
; Snap/move to the right | ||
; alt + d | ||
LAlt & d:: | ||
Send #{right} | ||
return |
Submodule workspaces
added at
84cb1a