Doorgaan naar hoofdcontent

Add Costum Keyboard Layout to XFCE

How to create this keyboard layout for Xfce :

Works also on Mate!!!!

 


It is a lightly modified version of the dvorak programmers layout.
I changed the lower left row. So you can easily undo, cut, copy & paste         with your left hand and keep the other hand on your mouse.
Step 1.
Edit file: /usr/share/X11/xkb/symbols/us
Insert this snippit:
// programmer Dvorak wim's style, by Wim Stockman <wim.stockman at gmail dot com>
// Main features: Numbers are in shift position (like French), symbols have been
// switch position of z x c v to the bottom left for easy shortcut handling
partial alphanumeric_keys
xkb_symbols "dvp-wim" {

 include "us(dvorak)"
 name[Group1] = "English (programmer Dvorak Wims style ZXCV)";

 // Unmodified Shift AltGr Shift+AltGr
 // symbols row, left side
 key <TLDE> { [ dollar, asciitilde, dead_tilde ] };
 key <AE01> { [ ampersand, percent ] };
 key <AE02> { [ bracketleft, 7, currency ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE03> { [ braceleft, 5, cent ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE04> { [ braceright, 3, yen ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE05> { [ parenleft, 1, EuroSign ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE06> { [ equal, 9, sterling ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };

 // symbols row, right side
 key <AE07> { [ asterisk, 0 ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE08> { [ parenright, 2, onehalf ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE09> { [ plus, 4 ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE10> { [ bracketright, 6 ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <AE11> { [ exclam, 8, exclamdown, U2E18 ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" }; // reversed interrobang
 key <AE12> { [ numbersign, grave, dead_grave ] };
 key <BKSP> { [ BackSpace, BackSpace ] };

 // upper row, left side
 key <AD01> { [ semicolon, colon, dead_diaeresis ] };
 key <AD02> { [ comma, less, guillemotleft, U201C ] };
 key <AD03> { [ period, greater, guillemotright, U201D ] };
 key <AD04> { [ p, P, paragraph, section ] };
 key <AD05> { [ y, Y, udiaeresis, Udiaeresis ] };

 // upper row, right side
 key <AD08> { [ k, K ] };
 key <AD09> { [ r, R, registered, trademark ] };
 key <AD11> { [ slash, question, questiondown, U203D ] }; // interrobang
 key <AD12> { [ at, asciicircum, dead_circumflex, dead_caron ] };

 // home row, left side
 key <AC01> { [ a, A, aring, Aring ] };
 key <AC02> { [ o, O, oslash, Ooblique ] };
 key <AC03> { [ e, E, ae, AE ] };
 key <AC04> { [ u, U, eacute, Eacute ] };

 // home row, right side
 key <AC06> { [ d, D, eth, ETH ] };
 key <AC07> { [ h, H, dead_acute ] };
 key <AC08> { [ t, T, thorn, THORN ] };
 key <AC09> { [ n, N, ntilde, Ntilde ] };
 key <AC10> { [ s, S, ssharp ] };
 key <AC11> { [ minus, underscore, hyphen, endash ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
 key <BKSL> { [ backslash, bar ] };

 // lower row, left side
 key <AB01> { [ z, Z ] };
 key <AB02> { [ x, X ] };
 key <AB03> { [ c, C, ccedilla, Ccedilla ] };
 key <AB04> { [ v, V ] };
 key <AB05> { [ j, J ] };
 key <AB09> { [ q, Q ] };
 key <AB10> { [ apostrophe, quotedbl, dead_acute ] };


 // do NOT hardcode this switch; use lv3:ralt_switch option instead!
 //include "level3(ralt_switch)"
};  
 

Save it
Step 2:
Edit file: usr/share/X11/xkb/rules/base.xml
Edit file: usr/share/X11/xkb/rules/evdev.xml
Add: (best way to add is by copy and past the programmer dvorak line and change name and description)
<variant>     <configitem>
            <name>dvp-wim</name>
            <description>English (programmer Dvorak Wims style ZXCV)</description>
          </configitem>
        </variant>
        <variant>
</variant>

Reacties

Populaire posts van deze blog

Awk Tips & Tricks: print a "," at the end of the line EXCEPT the last one!

Small AWK idiomatic tip. If you want to add a char at the end of each line.EXCEPT the last one. for instance you are generating an array. awk NR>1 {printf(",\n");} {printf($0);} TLDR; The NR stands for number record, the line it is processing usually. the printf statement prints out without the ORS( output record separator) usually newline (\n) char. END;

Install Arch Linux on Raid0 with GPT and Grub 2

Install Arch Linux on Raid0 with GPT and Grub 2 First start by downloading the iso. dd it onto usb stick  boot iso then start by setting up internet connection test it : ping www.google.com Load the appropriate RAID (e.g. raid0 , raid1 , raid5 , raid6 , raid10 ) modules.  We will use raid0, and raid1 modprobe raid0 modprobe raid1 Prepare Hard Drives Each drive will have 100Mb for /boot these will be in raid1 for safety The / partition takes the remainder of the drive install gdisk for formatting in GPT pacman-db-upgrade pacman -Syy pacman -S gptfdisk gdisk /dev/sda Add a new partition: n Select the default partition number: Enter Use the default for the first sector: Enter For sda1 type the appropriate size in MB (i.e. +100MB and +2048M ).  Select BIOS BOOT PARTITION as the partition type: ef02  !!!very important Write the table to disk and exit: w Repeat for the second partition on /dev/sda but for step 4 just press ENTER to use the remaind