From: Jannik ZANDER Date: Thu, 5 May 2016 09:21:28 +0000 (+0200) Subject: Map capslock to control in windows X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=de52b7f7b5c5a2a21ac72df1a7efc3adcc0c6a99;p=dotfiles.git Map capslock to control in windows --- 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/bat/solarized.reg b/bat/solarized.reg deleted file mode 100644 index ab8eac1..0000000 --- a/bat/solarized.reg +++ /dev/null @@ -1,47 +0,0 @@ -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/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 0000000..6d1a8c6 Binary files /dev/null and b/exe/caps_lock_to_control.reg differ diff --git a/exe/remove_scancode_mappings.reg b/exe/remove_scancode_mappings.reg new file mode 100644 index 0000000..8a029d0 Binary files /dev/null and b/exe/remove_scancode_mappings.reg differ diff --git a/exe/solarized.reg b/exe/solarized.reg new file mode 100644 index 0000000..8f2c312 --- /dev/null +++ b/exe/solarized.reg @@ -0,0 +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 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 0000000..9da672b Binary files /dev/null and b/exe/swap_caps_lock_and_control.reg differ