]> git.zndr.dk Git - dotfiles.git/commitdiff
Map capslock to control in windows
authorJannik ZANDER <jannikz@gmail.com>
Thu, 5 May 2016 09:21:28 +0000 (11:21 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Thu, 5 May 2016 09:23:57 +0000 (11:23 +0200)
bat/caps2ctrl.reg [deleted file]
bat/solarized.reg [deleted file]
exe/caps_lock_to_control.ahk [new file with mode: 0644]
exe/caps_lock_to_control.reg [new file with mode: 0644]
exe/remove_scancode_mappings.reg [new file with mode: 0644]
exe/solarized.reg [new file with mode: 0644]
exe/swap_caps_lock_and_control.ahk [new file with mode: 0644]
exe/swap_caps_lock_and_control.reg [new file with mode: 0644]

diff --git a/bat/caps2ctrl.reg b/bat/caps2ctrl.reg
deleted file mode 100644 (file)
index 80776b6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Windows Registry Editor Version 5.00\r
-[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]\r
-"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 (file)
index ab8eac1..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-Windows Registry Editor Version 5.00\r
-\r
-; Registry file that maps the solarized palette to the 16 avaliable colors\r
-; in a Windows command prompt. Note, hex values in the table are RGB but byte\r
-; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>\r
-;\r
-; Solarized color table from http://ethanschoonover.com/solarized.\r
-;\r
-; NR  cmd.exe      PowerShell   SOLARIZED  HEX      DWORD\r
-; --  -------      -----------  ---------  -------  --------\r
-; 00  Black        Black        base03     #002b36  00362b00\r
-; 01  Blue         DarkBlue     base0      #839496  00969483\r
-; 02  Green        DarkGreen    base01     #586e75  00756e58\r
-; 03  Aqua         DarkCyan     base1      #93a1a1  00a1a193\r
-; 04  Red          DarkRed      orange     #cb4b16  00164bcb\r
-; 05  Purple       DarkMagenta  violet     #6c71c4  00c4716c\r
-; 06  Yellow       DarkYellow   base00     #657b83  00837b65\r
-; 07  White        Gray         base2      #eee8d5  00d5e8ee\r
-; 08  Gray         DarkGray     base02     #073642  00423607\r
-; 09  LightBlue    Blue         blue       #268bd2  00d28b26\r
-; 10  LightGreen   Green        green      #859900  00009985\r
-; 11  LightAqua    Cyan         cyan       #2aa198  0098a12a\r
-; 12  LightRed     Red          red        #dc322f  002f32dc\r
-; 13  LightPurple  Magenta      magenta    #d33682  008236d3\r
-; 14  LightYellow  Yellow       yellow     #b58900  000089b5\r
-; 15  BrightWhite  White        base3      #fdf6e3  00e3f6fd\r
-;\r
-\r
-[HKEY_CURRENT_USER\Console]\r
-"ColorTable00"=dword:00362b00\r
-"ColorTable01"=dword:00969483\r
-"ColorTable02"=dword:00756e58\r
-"ColorTable03"=dword:00a1a193\r
-"ColorTable04"=dword:00164bcb\r
-"ColorTable05"=dword:00c4716c\r
-"ColorTable06"=dword:00837b65\r
-"ColorTable07"=dword:00d5e8ee\r
-"ColorTable08"=dword:00423607\r
-"ColorTable09"=dword:00d28b26\r
-"ColorTable10"=dword:00009985\r
-"ColorTable11"=dword:0098a12a\r
-"ColorTable12"=dword:002f32dc\r
-"ColorTable13"=dword:008236d3\r
-"ColorTable14"=dword:000089b5\r
-"ColorTable15"=dword:00e3f6fd\r
-"ScreenColors"=dword:00000001\r
-"PopupColors"=dword:000000f6\r
diff --git a/exe/caps_lock_to_control.ahk b/exe/caps_lock_to_control.ahk
new file mode 100644 (file)
index 0000000..586f1b3
--- /dev/null
@@ -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 (file)
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 (file)
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 (file)
index 0000000..8f2c312
--- /dev/null
@@ -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<B><G><R>
+;
+; 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 (file)
index 0000000..3388b3e
--- /dev/null
@@ -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 (file)
index 0000000..9da672b
Binary files /dev/null and b/exe/swap_caps_lock_and_control.reg differ