From de52b7f7b5c5a2a21ac72df1a7efc3adcc0c6a99 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Thu, 5 May 2016 11:21:28 +0200 Subject: [PATCH] Map capslock to control in windows --- bat/caps2ctrl.reg | 3 - exe/caps_lock_to_control.ahk | 1 + exe/caps_lock_to_control.reg | Bin 0 -> 382 bytes exe/remove_scancode_mappings.reg | Bin 0 -> 256 bytes {bat => exe}/solarized.reg | 94 ++++++++++++++--------------- exe/swap_caps_lock_and_control.ahk | 2 + exe/swap_caps_lock_and_control.reg | Bin 0 -> 404 bytes 7 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 bat/caps2ctrl.reg create mode 100644 exe/caps_lock_to_control.ahk create mode 100644 exe/caps_lock_to_control.reg create mode 100644 exe/remove_scancode_mappings.reg rename {bat => exe}/solarized.reg (97%) create mode 100644 exe/swap_caps_lock_and_control.ahk create mode 100644 exe/swap_caps_lock_and_control.reg diff --git a/bat/caps2ctrl.reg b/bat/caps2ctrl.reg deleted file mode 100644 index 80776b6..0000000 --- a/bat/caps2ctrl.reg +++ /dev/null @@ -1,3 +0,0 @@ -Windows Registry Editor Version 5.00 -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] -"Scancode Map"=hex:00,00,00,00,00,00,00,00,04,00,00,00,1d,00,3a,00,01,00,29,00,29,00,01,00,00,00,00,00 \ No newline at end of file diff --git a/exe/caps_lock_to_control.ahk b/exe/caps_lock_to_control.ahk new file mode 100644 index 0000000..586f1b3 --- /dev/null +++ b/exe/caps_lock_to_control.ahk @@ -0,0 +1 @@ +Capslock::Ctrl diff --git a/exe/caps_lock_to_control.reg b/exe/caps_lock_to_control.reg new file mode 100644 index 0000000000000000000000000000000000000000..6d1a8c6271cb9c71c8f31aa6de719742cb63a9cf GIT binary patch literal 382 zcmb7=&1%9x6h_aw(02%~rKqJFp$iEGrKUnH7EzI^K?5a`SW#czdJ@P=H!{r3{eI?t zm-#<`laR6^3GkHyhF7fAF5M^I);2%N1~9uU2}V!ob!ndymjMdB?rUfGC`w9EPHcbzS6`I{zG{Ie-lUHs2=9dH225 literal 0 HcmV?d00001 diff --git a/exe/remove_scancode_mappings.reg b/exe/remove_scancode_mappings.reg new file mode 100644 index 0000000000000000000000000000000000000000..8a029d03009a8cbab3ffee3129f86ede082cff30 GIT binary patch literal 256 zcmXwzO$z~06o#L*@*iYRHkKBe6fu+$2?;Z4N;8@v`SW;YO1FE@eLv25&-b$-B_k&1 zMM;Y#30Jw22L*4Lk!mW+#VywAg=#9!#C^K-JWU$)-7#ir&z2)I76c5fM?!0$Hes&1 zC(;qI@*j!CotYHWv#b1^o32Ez@>Gd`c5h1JerMT}&e&aM{@&uJu0y>|+wO~O Q=9}wDbcNzOZ3cAs0f;#*9{>OV literal 0 HcmV?d00001 diff --git a/bat/solarized.reg b/exe/solarized.reg similarity index 97% rename from bat/solarized.reg rename to exe/solarized.reg index ab8eac1..8f2c312 100644 --- a/bat/solarized.reg +++ b/exe/solarized.reg @@ -1,47 +1,47 @@ -Windows Registry Editor Version 5.00 - -; Registry file that maps the solarized palette to the 16 avaliable colors -; in a Windows command prompt. Note, hex values in the table are RGB but byte -; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00 -; -; Solarized color table from http://ethanschoonover.com/solarized. -; -; NR cmd.exe PowerShell SOLARIZED HEX DWORD -; -- ------- ----------- --------- ------- -------- -; 00 Black Black base03 #002b36 00362b00 -; 01 Blue DarkBlue base0 #839496 00969483 -; 02 Green DarkGreen base01 #586e75 00756e58 -; 03 Aqua DarkCyan base1 #93a1a1 00a1a193 -; 04 Red DarkRed orange #cb4b16 00164bcb -; 05 Purple DarkMagenta violet #6c71c4 00c4716c -; 06 Yellow DarkYellow base00 #657b83 00837b65 -; 07 White Gray base2 #eee8d5 00d5e8ee -; 08 Gray DarkGray base02 #073642 00423607 -; 09 LightBlue Blue blue #268bd2 00d28b26 -; 10 LightGreen Green green #859900 00009985 -; 11 LightAqua Cyan cyan #2aa198 0098a12a -; 12 LightRed Red red #dc322f 002f32dc -; 13 LightPurple Magenta magenta #d33682 008236d3 -; 14 LightYellow Yellow yellow #b58900 000089b5 -; 15 BrightWhite White base3 #fdf6e3 00e3f6fd -; - -[HKEY_CURRENT_USER\Console] -"ColorTable00"=dword:00362b00 -"ColorTable01"=dword:00969483 -"ColorTable02"=dword:00756e58 -"ColorTable03"=dword:00a1a193 -"ColorTable04"=dword:00164bcb -"ColorTable05"=dword:00c4716c -"ColorTable06"=dword:00837b65 -"ColorTable07"=dword:00d5e8ee -"ColorTable08"=dword:00423607 -"ColorTable09"=dword:00d28b26 -"ColorTable10"=dword:00009985 -"ColorTable11"=dword:0098a12a -"ColorTable12"=dword:002f32dc -"ColorTable13"=dword:008236d3 -"ColorTable14"=dword:000089b5 -"ColorTable15"=dword:00e3f6fd -"ScreenColors"=dword:00000001 -"PopupColors"=dword:000000f6 +Windows Registry Editor Version 5.00 + +; Registry file that maps the solarized palette to the 16 avaliable colors +; in a Windows command prompt. Note, hex values in the table are RGB but byte +; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00 +; +; Solarized color table from http://ethanschoonover.com/solarized. +; +; NR cmd.exe PowerShell SOLARIZED HEX DWORD +; -- ------- ----------- --------- ------- -------- +; 00 Black Black base03 #002b36 00362b00 +; 01 Blue DarkBlue base0 #839496 00969483 +; 02 Green DarkGreen base01 #586e75 00756e58 +; 03 Aqua DarkCyan base1 #93a1a1 00a1a193 +; 04 Red DarkRed orange #cb4b16 00164bcb +; 05 Purple DarkMagenta violet #6c71c4 00c4716c +; 06 Yellow DarkYellow base00 #657b83 00837b65 +; 07 White Gray base2 #eee8d5 00d5e8ee +; 08 Gray DarkGray base02 #073642 00423607 +; 09 LightBlue Blue blue #268bd2 00d28b26 +; 10 LightGreen Green green #859900 00009985 +; 11 LightAqua Cyan cyan #2aa198 0098a12a +; 12 LightRed Red red #dc322f 002f32dc +; 13 LightPurple Magenta magenta #d33682 008236d3 +; 14 LightYellow Yellow yellow #b58900 000089b5 +; 15 BrightWhite White base3 #fdf6e3 00e3f6fd +; + +[HKEY_CURRENT_USER\Console] +"ColorTable00"=dword:00362b00 +"ColorTable01"=dword:00969483 +"ColorTable02"=dword:00756e58 +"ColorTable03"=dword:00a1a193 +"ColorTable04"=dword:00164bcb +"ColorTable05"=dword:00c4716c +"ColorTable06"=dword:00837b65 +"ColorTable07"=dword:00d5e8ee +"ColorTable08"=dword:00423607 +"ColorTable09"=dword:00d28b26 +"ColorTable10"=dword:00009985 +"ColorTable11"=dword:0098a12a +"ColorTable12"=dword:002f32dc +"ColorTable13"=dword:008236d3 +"ColorTable14"=dword:000089b5 +"ColorTable15"=dword:00e3f6fd +"ScreenColors"=dword:00000001 +"PopupColors"=dword:000000f6 diff --git a/exe/swap_caps_lock_and_control.ahk b/exe/swap_caps_lock_and_control.ahk new file mode 100644 index 0000000..3388b3e --- /dev/null +++ b/exe/swap_caps_lock_and_control.ahk @@ -0,0 +1,2 @@ +Capslock::Ctrl +LCtrl::Capslock diff --git a/exe/swap_caps_lock_and_control.reg b/exe/swap_caps_lock_and_control.reg new file mode 100644 index 0000000000000000000000000000000000000000..9da672bba6b50951a1ab79a8a3d370eefd4ccfb4 GIT binary patch literal 404 zcmb7=L2JT55Jum*;C~R$A}!)Y@F20!qEXPIh>F-6YM>+~R;+)%^(7GW;6;|~&iBpR znaTeD&4@|Zl5%8El`#>YdV7AzIO#l_ja8|-%G7*jHdZI<77ZR<6&{Lj!3%xw%vm#F zL_pVbP3Rezdu3>L$wXqpn{lWLI9N5ac4DWXsGavu`I3tCawhLsx=Xu6&iAgnk=#1V z!04ntNUe%#YTo|PP25wNNGeo+Q=`L9{Y$%;zkb)=