NewFiveFour | Blog |
If you want to type using another keyboard quickly you can use
setxkbmap to change your X windows keyboard using a keymap.
Let’s say you want to switch from a us keyboard to a french keyboard. Use
setxkbmap us,fr -option grp:ralt_shift_toggle
Then press right alt and shift together to switch between the two. I hold shift then tap
If you are using vim a lot, and touch type, you may find reaching up to press escape all the time ruins your typing.
You can rebind escape to caps lock, and vice versa, throughout all your X apps using
Use this in
clear Lock keycode 9 = Caps_Lock keycode 0x42 = Escape
And then use the command, probably in your
xmodmap ~/.Xmodmap to do the rebind.
set -o vi and you can press escape (or whatever you’d bound that to) to use the vim commands on the current commanded typed in on the command line.
You can also press
v and it will open up vim and you can edit the command in the full vim editor.
You made need to put
EDITOR=vim in your
You can group items with a border in HTML using
fieldset and you can also give that border a title using
The title breaks the border briefly at the top.
Here’s an example which you can use to impress your friends, family, dogs, cats and potential parliamentary representatives.
<fieldset style="border: 1px dashed black"> <legend>Ladies and gentlemen we are floating in space</legend> Sup </fieldset>
First make the
position of the div
fixed. We’ll place it at the bottom of our screen by setting the
We make it so the div starts from the middle of the screen by setting the
left property to
But this won’t make it exactly in the middle of the screen, of course, since this mean it starts from the middle of the screen, not that its centre point is in the middle of the screen.
To properly centre the div use the
transform property to move the div half its width to the left.
<div style="position: fixed; bottom: 5px; left: 50%; transform: translateX(-50%);"> I am centered. Rejoice. </div>