cyberfix

cosmos 27th April 2019 at 9:42pm
Cyberself

Current substrate: Dell Precision M6700 (aquired in Dubai in 2012)

Finger interface (aka Keyboard)

xkb version of keymapping

git apply evdev.patch

evdev.patch

diff --git /usr/share/X11/xkb/keycodes/evdev /usr/share/X11/xkb/keycodes/evdev
index 5d6701b..624ac68 100644
--- /usr/share/X11/xkb/keycodes/evdev
+++ /usr/share/X11/xkb/keycodes/evdev
@@ -65,18 +65,18 @@ default xkb_keycodes "evdev" {
  <AB10> = 61;
  <RTSH> = 62;

- <LALT> = 64;
- <LCTL> = 37;
+ <LALT> = 133;
+ <LCTL> = 64;
  <SPCE> = 65;
  <RCTL> = 105;
  <RALT> = 108;
  // Microsoft keyboard extra keys
- <LWIN> = 133;
+ <LWIN> = 37;
  <RWIN> = 134;
  <COMP> = 135;
  alias <MENU> = <COMP>;

- <ESC> = 9;
+ <ESC> = 66;
  <FK01> = 67;
  <FK02> = 68;
  <FK03> = 69;

genereted by doing git diff [file1] [file2] > [patch_file].patch

in ubuntu 18

all done through the keyboard shortcut settings:

mapped ctrl+[Page_up] to ctrl+q and ctrl+[Page_down] to ctrl+d using Ubuntu's own ability to create shortcuts (Settings>Keyboard>Shortcuts>Custom shortcuts – see conversation with Paco on 26/1/2018 on Telegram 7pm) (and alternative to achieve the same thing is – https://askubuntu.com/questions/105224/ctrl-page-down-ctrl-page-up . We link the shortcuts to "virutal keypresses" using xvkbd, in particular the commands xvkbd -xsendevent -text "\C\[Next]" and xvkbd -xsendevent -text "\C\[Prior]"

Also now mapped Ctrl+D to Alt+D via Ubuntu settings also, linking Alt+d to command xvkbd -xsendevent -text "\Cd"... becuase I need to use ctrl+D in several cases, like in terminal..

We map alt+tab to ctrl+tab

map alt+grave (`) to ctrl+grave

Servers

crontab

crontab -e

crontab can't write to log unless the non-root user chowns it.. this seems to agree with what this guy says: https://forums.freebsd.org/threads/cron-gets-permission-denied-writing-in-var-log.36308/ (unless what some other people said in other formus)


old

"key" refers to physical buttons. By convention, we map Software functions to Keys

~/.Xmodmap – we map control to Alt key; We map Alt to Windows key; We map Window(Meta) to Control Key. We map Escape to Caps Lock key.

clear control
clear mod1
clear mod4
keycode 37 = Super_L
keycode 64 = Control_L
keycode 133 = Alt_L Meta_L
keycode 66 = Escape 
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
add mod4 = Super_L
add lock = Escape 
clear lock 

\\why does clear lock have to be at the end for CapsLock to stop being CapsLock??

Command to activate xmodmap ~/.Xmodmap . Haven't yet figured out how to run it automatically. Should try to make service using Systemd as in evevo.

mapped ctrl+[Page_up] to ctrl+q and ctrl+[Page_down] to ctrl+d using Ubuntu's own ability to create shortcuts (Settings>Keyboard>Shortcuts>Custom shortcuts – see conversation with Paco on 26/1/2018 on Telegram 7pm) (and alternative to achieve the same thing is – https://askubuntu.com/questions/105224/ctrl-page-down-ctrl-page-up . We link the shortcuts to "virutal keypresses" using xvkbd, in particular the commands xvkbd -xsendevent -text "\C\[Next]" and xvkbd -xsendevent -text "\C\[Prior]"

Also now mapped Ctrl+D to Alt+D via Ubuntu settings also, linking Alt+d to command xvkbd -xsendevent -text "\Cd"... becuase I need to use ctrl+D in several cases, like in terminal..

in ubuntu 16)

We map alt+tab to ctrl+tab using compizconfig-settings-manager (that's the name of the package to install, but then seems to only be available on app menu, not on bash) – https://askubuntu.com/questions/288378/cannot-remap-alt-tab-combination-after-switching-ctrl-and-alt – In compiz go to Ubuntu Unity Plugin > Switcher and set "Key to start the Switcher" to Ctrl+Tab

map alt+grave (`) to ctrl+grave using compiz also – https://askubuntu.com/questions/132304/how-to-disable-alt-backtick-grave – Change Key to flip through windows in the switcher from disabled to something else.