Browse Source

documentation, photocp takes arg

exuberance
Brennen Bearnes 12 years ago
parent
commit
e21f32115e
4 changed files with 50 additions and 15 deletions
  1. +13
    -7
      .vimrc
  2. +11
    -4
      README
  3. +23
    -1
      bin/photocp
  4. +3
    -3
      bin/xmonad.start

+ 13
- 7
.vimrc View File

@ -1,10 +1,13 @@
set nocompatible
" set up vundle to manage plugins
" this sets up vundle to manage plugins
" https://github.com/gmarik/vundle
" to use:
" git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" <vundle>
" mkdir -p ~/.vim/bundle
" git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" vim +BundleInstall
" <vundle-config>
filetype off
@ -28,8 +31,8 @@ set nocompatible
Bundle 'flazz/vim-colorschemes'
Bundle 'altercation/vim-colors-solarized'
Bundle 'chriskempson/vim-tomorrow-theme.git'
Bundle 'ColorSchemeMenuMaker'
Bundle 'desert-warm-256'
Bundle 'ColorSchemeMenuMaker'
" match lots of things
Bundle 'edsono/vim-matchit'
@ -38,7 +41,7 @@ set nocompatible
Bundle 'FuzzyFinder'
" Bundle 'surround.vim'
" </vundle>
" </vundle-config>
set title
@ -49,11 +52,12 @@ filetype indent on
" do not beep or flash at me
" vb is needed to stop beep
" t_vb sets visual bell action, we're nulling it out here)
" note also that this may need to be repeated in .gvimrc
set visualbell
set t_vb=
" enable mouse for (a)ll, (n)ormal, (v)isual, (i)nsert, or (c)ommand line
" mode -- seems to work in most terminals
" mode - seems to work in most terminals
set mouse=a
" let me delete stuff like crazy in insert mode
@ -69,7 +73,7 @@ set statusline=%<%{fugitive#statusline()}\ %f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
" keep lots of command-line history
set history=3500
" search
" search:
set incsearch
set ignorecase
set smartcase
@ -179,6 +183,8 @@ au BufWinEnter notes silent loadview
" read (unchanged) buffers when they're modified on filesystem
set autoread
" <colors>
" colorscheme brookstream
colorscheme pyte
" colorscheme mustang
" </colors>

+ 11
- 4
README View File

@ -1,19 +1,26 @@
bpb-kit
a place to hang various dotfiles, simple utility scripts, and suchlike noise.
a place to hang various dotfiles, simple utility scripts, and other noise.
i used to keep some of these in separate repos, but it seemed like overkill.
contents:
* a couple of scripts in bin/
* vim config - .vimrc & .vim/
- uses Vundle to manage plugins and such
* .Xdefaults & .xmodmap
- tweak xterm behavior
- capslock -> ctrl
* xmonad config - .xmobarrc, .xmonad/
* xmonad config -
- .xmobarrc, .xmonad/
- see bin/xmonad.start for a drop-in replacement for default xmonad
startup on Debian-like systems, including gnome stuff and the like
* shell stuff
- .bashrc
- .zshrc
- .aliases
* a couple of scripts in bin/

+ 23
- 1
bin/photocp View File

@ -1,5 +1,25 @@
#!/usr/bin/env perl
=pod
=head1 NAME
photocp - copy files from digital camera media to my home dir
=head1 SYNOPSIS
# try a couple of defaults
photocp
# look in source_directory
photocp [source_directory]
=head1 AUTHOR
Brennen Bearnes <bbearnes@gmail.com>
=cut
use strict;
use warnings;
@ -16,7 +36,9 @@ my $daydir = strftime("%Y-%m-%e", @t);
$daydir =~ s{-[0 ]}{-}g;
my $src;
if (-e '/media/CANON_DC') {
if (-d $ARGV[0]) {
$src = $ARGV[0];
} elsif (-e '/media/CANON_DC') {
$src = '/media/CANON_DC';
} elsif (-e '/media/EOS_DIGITAL') {
$src = '/media/EOS_DIGITAL';


+ 3
- 3
bin/xmonad.start View File

@ -1,7 +1,7 @@
#!/bin/bash
# this might go in /usr/local/bin and, at least on ubuntu systems, should be
# pointed at by /usr/share/xsessions/xmonad.desktop
# this can go in /usr/local/bin and, at least on ubuntu or debian systems,
# should be pointed at by /usr/share/xsessions/xmonad.desktop
# Load resources
@ -13,7 +13,6 @@ trayer --SetDockType true --SetPartialStrut true --edge bottom --align right --
#trayer --edge top --align right --SetDockType true --SetPartialStrut true \
# --expand true --width 9 --transparent true --tint 0x191970 --height 12 &
# Set the background color
xsetroot -solid midnightblue
@ -28,6 +27,7 @@ if [ -x /usr/bin/nm-applet ] ; then
nm-applet --sm-disable &
fi
# you probably want this on a laptop
if [ -x /usr/bin/gnome-power-manager ] ; then
sleep 3
gnome-power-manager &


|||||||
x
 
000:0
Loading…
Cancel
Save