Skip to content

carlosmarin/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Index

Installation

Clone the repository

$ git clone git:https://github.com/olsonbg/dotfiles.git ~/dotfiles

Get and update the submodules

The submodules will have to be updated when this repository is first cloned, and whenever it is updated.

Initialize the submodules list in .gitmodules by recording them in .git/config.

$ git submodule init

Update the registered submodules to match what the dotfiles project expects

$ git submodule update

The previous two commands can be combined into one by

$ git submodule update --init

Create symlinks

Current dotfiles are backed up to the ~/dotfiles-<datetime> directory, where <datetime> is the current date and time.

$ ~/dotfiles/makesymlinks.sh

To activate the new settings, it's easiest to open a new terminal. Methods to activate the new settings in a currently running terminal vary, but one of the following commands may work

. ~/.bash_profile
. ~/.bashrc

Get most recent version of each bundled submodule

Update all registered submodules to their most recent commit. Note: This may bring the submodules to newer versions than may be expected by the dotfiles repository.

$ git submodule foreach git pull origin master

Usage

Solarized scheme

When first installed, the light solarized color scheme is used. The light or dark color schemes can be selected by using the solarized-light or solarized-dark commands, respectively. The command solarized will toggle between solarized-dark and solarize-light schemes. The new color scheme will take effect immediately, with a few caveats.

The solarized command writes a single line to the .Xresources.d/current-scheme file, either

#define SOLARIZED_LIGHT

or

#define SOLARIZED_DARK

This file is loaded first in the .Xresources file, followed by a series of #ifdef statements which load the correct solarized scheme.

Solarized color schemes included

  • Vim
  • Tmux
  • ls (dircolors)
  • Any program which makes use of xrdb resources (most terminals)

Host Specific Settings

Settings for specific hosts can be placed in bash.d/hosts/<hostname>, where <hostname> is the hostname of the machine as returned from the command hostname. If there is no matching folder for a host, then the settings in bash.d/hosts/generic will be used.

Font

The Inconsolata font pre-patched with Powerline symbols is used in xterm, and rxvt-unicode. The font is included with this repository and symbolically linked to from the ~/.fonts directory.

rxvt-unicode

As mentioned previously, the Inconsolata font is used in rxvt-unicode. The default font size is 11, however, the font size of a currently open terminal can be changed with one of the following:

Key Sequence Font size
Control-8 9
Control-9 10
Control-0 11

Recommended Software

LXDE

LXDE is a lightweight desktop for X11.

OpenBox

OpenBox is a Lightweight window manager. My custom key bindings are in lxde-rc.xml, and are:

Key Sequence Action
Print Screen shot of a window clicked, then open it in Gimp.
Shift-Print Screen shot of entire desktop, then open it in Gimp.
Win-Space Activate LXpanel menu
Win-Return Open a new urxvt terminal using bin/urxvtc-d on Desktop 1, and go there.
Win-r Resize current window
Win-m Move current window
Win-a Launch pavucontrol
Win-c b Open a new chromium browser on Desktop 2, and go there.
Win-c e Open gmail (inside chromium) on Desktop 3, and go there. This will not open a new window if one already exists.
Win-c c Open google calendar (inside chromium) on Desktop 3, and go there. This will not open a new window if one already exists.
Win-t Open Thunderbird on Desktop 3, and go there. This will not open a new window if one already exists.

Conky

Conky is a lightweight system monitor for X, settings are in conkyrc. There are color setting for desktops with dark or light backgrounds in the config file. Uncomment the one suitable for your desktop, and comment out the others.

Scrot

Scrot is a Screen capture program. The key bindings, set in lxde-rc.xml and tabulated in OpenBox.

stalonetray

stalonetray is a Stand alone system tray. The setting are in stalonetrayrc, and will place the tray in the upper left hand side of screen.

parcellite

parcellite is a small clipboard manager.

Compton

compton is a lightweight, standalone, compositing manager. The setting are in compton.config

xdotool

xdotool does fake keyboard/mouse input, window management, and more.

Caveats

Tmux

To enable the new color scheme in a currently running tmux session follow these steps:

  1. Detatch from tmux,
  2. Change the color scheme, with one of the previously listed commands,
  3. reattach to the tmux session.

Multiple terminals open

When changing the solarized scheme in a terminal, the new scheme will take effect immediately in that terminal, but not in others that are currently running. To activate the new colors in other terminals, use either the solarized-light or solarized-dark command in each open terminal.

KDE

To load the Xresources file on KDE login, this small script needs to be placed in the KDE Autostart directory (~/.kde4/Autostart).

#!/bin/sh

xrdb ~/.Xresources

This script is needed for KDE because it does not process an Xresources file containing #include directives properly (relative paths don't work). As far as I know, KDE is the only desktop that needs this fix.

Submodules

Git repositories included as submodules.

About

Dotfiles for configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Vim Script 64.8%
  • Shell 35.2%