Commit c6ebd95

bryfry <bryon.fryer@gmail.com>
2018-02-19 23:43:24
keyboard remapping
1 parent 0bb9929
files/search_caps.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Remap search key from Alt to Control
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+StandardInput=tty
+StandardOutput=tty
+ExecStart=/usr/bin/loadkeys /home/sid11/.config/search_caps.kmap
+
+[Install]
+WantedBy=multi-user.target
+
tasks/battery.yml
@@ -1,7 +1,7 @@
 ---
 # battery.yml tasks
 
-- name: fetch spark & battery
+- name: battery - fetch simple battery script
   get_url:
     url: "{{ item }}"
     dest: /usr/local/bin
tasks/systemd.yml
@@ -0,0 +1,18 @@
+---
+# systemd.yml tasks
+
+
+- name: systemd - config files
+  copy: 
+    src: "{{ item.src }}"
+    dest: "{{ item.dest }}"
+  become: True
+  with_items:
+  - {src: "files/search_caps.service", dest: "/etc/systemd/system/search_caps.service"}
+
+- name: systemd - enable keyboard mapping fix on startup
+  systemd:
+    name: search_caps
+    enabled: yes
+    daemon_reload: yes
+  become: True
main.yml
@@ -50,3 +50,4 @@
   - include: tasks/battery.yml
   - include: tasks/consolefont.yml
   - include: tasks/git.yml
+  - include: tasks/systemd.yml
README.md
@@ -49,6 +49,12 @@ An ansible playbook for setting up Debian Sid (console only) on a Dell Chromeboo
 
   * min backlight: `sudo tee /sys/class/backlight/intel_backlight/brightness <<< "1"`
   * max backlight: ``sudo tee /sys/class/backlight/intel_backlight/brightness <<< `cat /sys/class/backlight/intel_backlight/max_brightness` ``
+  * [good resource on tty keyboard mappings](https://superuser.com/questions/290115/how-to-change-console-keymap-in-linux)
+    * search key = keycode 125 = Alt
+    * left control key = keycode 29 = Control
+  * [how to live well on the linux console](http://blog.startaylor.net/2016/05/30/howto-console/)
+
+     
 
 ## TODO