Skip to content
Personal configuration files
Shell VimL
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
herbstluftwm
.gitignore
README.mkd
vimrc
xbindkeysrc-netbook

README.mkd

dotfiles

Personal configuration files

https://github.com/gogi-goji/dotfiles git@github.com:gogi-goji/dotfiles

Vim


Getting Started

First, install gvim. The default vim package that Arch Linux comes with is really lightweight, and doesn't come with a graphical version, Python support (needed for Gundo), X server options (no copy/paste from the clipboard), or the like.

Vim checks for your user's config file first in ~/.vimrc, then checks for a global one in /etc/vimrc. In order to keep things clean and under version control, let's use a symbolic link. ln -s ~/dotfiles/vimrc ~/.vimrc

Plugins

  • Vundle (takes care of all the rest of your plugins for you)
    • https://github.com/gmarik/vundle
    • Install vundle (as described in the README in the git repo)
    • in Vim, run :BundleInstall, and then Vim and your .vimrc will take care of everything else for you!

Spell Check

  • Install vim-spell-en (installed by default on Arch)
  • The rest is handled by my .vimrc

Theme

Using user environment with sudo

  • One potential problem with a quite customized setup with plugins is that your editor is quite dependant on your user's environment
  • This can be worked around with sudoedit
    • With # visudo, add or edit your sudoers file to include something like username ALL=(ALL) ALL,sudoedit
    • Ensure that your .xinitrc has export EDITOR=vim
    • Then, you can edit files with sudo privileges and your own user's environment with $ sudoedit filename. This uses a tmp file, which it then writes when you're done.

herbstluftwm


herbstluftwm is the tiling window manager I've become partial to on my netbook. It looks for your config files in (I think) $XDG_HOME/herbstluftwm/. So in order to keep all my editable config files here in this git repo, I use a symlink to point herbstluftwm in the right direction. This dir includes conky configuration.

$ yaourt -S herbstluftwm-git conky
$ ln -s ~/dotfiles/herbstluftwm/ ~/.config/herbstluftwm

Note that my conky config relies upon my scripts being installed in ~/scripts.

xbindkeys


Start by installing xbindkeys from the official repos:

$ yaourt -S xbindkeys

Then, create a symlink to the config file:

$ ln -s ~/dotfiles/xbindkeysrc-netbook ~/.xbindkeysrc

You'll probably want xbindkeys to start automatically. Ensure that in your ~/.xinitrc, you have xbindkeys &

My netbook xbindkeys config relies on Light and setpci, both of which require sudo to run. To allow them to run without requiring a password for users in the group wheel, use # visudo and add the line:

%wheel ALL = NOPASSWD: /usr/bin/light, /usr/sbin/setpci

Personal keymap


I've made a personal keymap, us-personal, that's a slightly modified version of the standard us keyboard layout. In it, I've remapped to function as an additional Control key, while still functions as Caps Lock.

Copy the gziped file, us-personal.map.gz to /usr/share/kbd/keymaps/i386/qwerty/ Test it out with setxkbmap us-personal, then add it to your /etc/rc.conf.

Note: In the future, I believe the place the keyboard map is now set system-wide in Arch Linux is /etc/vconsole.conf

Note: Works fine in console with # loadkeys, but won't work in X. Not sure why.

Something went wrong with that request. Please try again.