Doorgaan naar hoofdcontent

Posts

VIM tips & tricks 2: "Adding and Subtracting numbers"

One of the coolest features in Vim is to easily change a number by either an addition or a subtraction of the number on the cursor In normal mode you type <C-a> for adding one or <C-x> for subtracting one it even gets better if you add a number before your <C-a> it will use that number to add to the number on the cursor!

Add Custom Keyboard to Linux console

Step 1: su cp /usr/share/kbd/keymaps/i386/dvorak/dvorak-programmer.map.gz . chmod 777 dvorak-programmer.map.gz mv  dvorak-programmer.map.gz  dvorak-wim.map.gz  gzip -d dvorak-wim.map.gz Step 2: edit the file and change row 5 ! -------------------------------------------------------------------------- ! Row 5 ! -------------------------------------------------------------------------- keycode  42 = Shift keycode  44 = z keycode  45 = x keycode  46 = c keycode  47 = v keycode  48 = j keycode  49 = b keycode  50 = m keycode  51 = w keycode  52 = q keycode  53 = apostrophe     quotedbl keycode  54 = Shift And keycode  23 = k Save it! gzip dvorak-wim.map cp dvorak-wim.map /usr/share/kbd/keymaps/i386/dvorak/dvorak-wim.map.gz chmod 644  /usr/share/kbd/keymaps/i386/dvorak/dvorak-wim.map.gz To use it, type loadkeys dvorak-wim To make it permanent edi...

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...

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 ],...