From: kremlin Date: Sun, 18 May 2014 03:18:20 +0000 (-0400) Subject: whoops2 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fc9a14578a37ee06e5261cc565504229debb359;p=dotfiles.git whoops2 --- diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..9894255 --- /dev/null +++ b/.Xresources @@ -0,0 +1 @@ +XTerm*loginShell:true diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..c5f3c1a --- /dev/null +++ b/.bash_profile @@ -0,0 +1,13 @@ +if [ -f ~/.bashrc ]; then + source ~/.bashrc +fi + +export TERM=screen-256color +alias -p tmux=tmux -u + +export EDITOR=/usr/local/bin/vim +export VISUAL=/usr/local/bin/vim + +export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ +export CVSROOT=anoncvs@mirror.planetunix.net:/cvs + diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..2bbcb75 --- /dev/null +++ b/.bashrc @@ -0,0 +1,3 @@ + + +PS1="\n\[\033[1;37m\]\342\224\214($(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;34m\]\u@\h'; fi)\[\033[1;37m\])\342\224\200(\[\033[1;34m\]\$?\[\033[1;37m\])\342\224\200(\[\033[1;34m\]\@ \d\[\033[1;37m\])\[\033[1;37m\]\n\342\224\224\342\224\200(\[\033[1;32m\]\w\[\033[1;37m\])\342\224\200(\[\033[1;32m\]\$(ls -1 | wc -l | sed 's: ::g') files\[\033[1;37m\])\342\224\200> \[\033[0m\]" diff --git a/.fehbg b/.fehbg new file mode 100644 index 0000000..38849ea --- /dev/null +++ b/.fehbg @@ -0,0 +1 @@ +feh --bg-tile '/home/kremlin/wallpapers/krem-tiling.png' diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..d5e2ec2 --- /dev/null +++ b/.vimrc @@ -0,0 +1,11 @@ +set incsearch +set tabstop=4 +set backspace=2 +set ruler +set smartcase +set showmatch +set cindent +set nu +set nocp +syntax on + diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..275b79e --- /dev/null +++ b/.xinitrc @@ -0,0 +1,34 @@ +#!/bin/sh + +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for f in /etc/X11/xinit/xinitrc.d/*; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +urxvtd -q -o -f + +sh ~/.fehbg & + +xset +fp /usr/local/lib/X11/fonts/terminus +xset fp rehash +#xbindkeys & +xcalib .colorprofiles/macbookpro83.icc & +xsetroot -cursor_name left_ptr & +xrdb ~/.Xresources & + +export WM="xmonad" & +export TERM="rxvt-unicode" & + +# this goes in .bash_profile +#export EDITOR="vim" & +#export PATH=$(cope_path):$PATH & +#export PATH=~/golang/bin:$PATH & +#export PATH=$PATH:$HOME/bin & +#export GOPATH=~/golang & +#export CVSROOT=anoncvs@mirror.planetunix.net:/cvs & +#export PKG_PATH=ftp://mirror.planetunix.net/pub/OpenBSD/snapshots/packages/amd64/ & + +exec /home/kremlin/.cabal/bin/xmonad + diff --git a/.xmobarrc b/.xmobarrc new file mode 100644 index 0000000..983efb5 --- /dev/null +++ b/.xmobarrc @@ -0,0 +1,22 @@ +Config { font = "-*-terminus-*-*-normal--12-120-72-72-c-60-*-*" + , bgColor = "#170f0d" + , fgColor = "#746c48" + , borderColor = "#746c48" + , border = NoBorder --BottomBM 1 + , position = Top + , allDesktops = True + , pickBroadest = False + , hideOnStart = False + , overrideRedirect = True + , persistent = True + , lowerOnStart = True + , sepChar = "%" + , alignSep = "}{" + , template = "%UnsafeStdinReader% }{ %battery% | %date% | %KHOU% | %uname%" + , commands = [ Run Weather "KHOU" ["-t","Houston: F ()","-L","32","-H","80","--normal","#70a16c","--high","#af652f","--low","#7b854e"] 36000 + , Run Com "uname" ["-s","-r"] "" 36000 + , Run Date "%a %b %d %Y %I:%M %p (%S)" "date" 10 + , Run Battery ["-t", "Bat: ","-L","15","-H","90","--high","#7b854e","--low","#af652f"] 600 + , Run UnsafeStdinReader + ] +} diff --git a/.xmonad/xmonad-x86_64-openbsd b/.xmonad/xmonad-x86_64-openbsd new file mode 100755 index 0000000..a5a9d91 Binary files /dev/null and b/.xmonad/xmonad-x86_64-openbsd differ diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs new file mode 100644 index 0000000..e189c5c --- /dev/null +++ b/.xmonad/xmonad.hs @@ -0,0 +1,88 @@ +import XMonad +import XMonad.Actions.SpawnOn +import XMonad.Hooks.DynamicLog +import XMonad.Hooks.ManageDocks +import XMonad.Util.Run +import XMonad.Util.EZConfig(additionalKeys) +import XMonad.Util.WorkspaceCompare +import XMonad.Layout.PerWorkspace +import XMonad.Layout.Spacing +import XMonad.Layout.ThreeColumns +import XMonad.Layout.Spiral +import Data.Ratio +import System.IO + +threeColLayout = ThreeCol 2 (3/100) (1/2) +tallLayout = Tall 1 (5/100) (2/3) +spiralLayout = spiral (1 % 1) + +mLayout = spacing 7 + $ tallLayout + ||| threeColLayout + ||| spiralLayout + +mStartupHook :: X () +mStartupHook = do + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + spawnOn "term" "kremterm" + + spawnOn "www" "google-chrome-stable" + + spawnOn "chat" "skype" + spawnOn "chat" "kremirc" + + spawnOn "music" "spotify" + spawnOn "music" "kremcmus" + + spawnOn "game" "steam" + +mManageHook = composeAll + [ appName =? "kremterm" --> doShift "term" + , appName =? "google-chrome-stable" --> doShift "www" + , appName =? "firefox" --> doShift "www" + , appName =? "kremirc" --> doShift "chat" + , appName =? "skype" --> doShift "chat" + , appName =? "spotify" --> doShift "music" + , appName =? "kremcmus" --> doShift "music" + , appName =? "thunderbird" --> doShift "mail" + , appName =? "Steam" --> doShift "game" + , className =? "Steam" --> doShift "game" + , appName =? "steam" --> doShift "game" + , className =? "steam" --> doShift "game" + , appName =? "steam.sh" --> doShift "game" + , className =? "steam.sh" --> doShift "game" + , appName =? "gimp" --> doShift "extra" + ] + +mWorkspaces = ["mon", "term", "www", "chat", "music", "mail", "game", "code", "extra"] +-- 1 2 3 4 5 6 7 8 9 + +main = do + xmproc <- spawnPipe "xmobar" + xmonad $ defaultConfig + { manageHook = mManageHook <+> manageDocks + , layoutHook = avoidStruts $ mLayout + , startupHook = mStartupHook + , logHook = dynamicLogWithPP xmobarPP + { ppOutput = hPutStrLn xmproc + , ppCurrent = xmobarColor "#70a16c" "" . wrap "[" "]" + , ppTitle = xmobarColor "#70a16c" "" . shorten 40 + , ppVisible = wrap "(" ")" + , ppWsSep = " | " + , ppUrgent = xmobarColor "#af652f" "" + , ppHidden = xmobarColor "#746c48" "" + , ppHiddenNoWindows = xmobarColor "#746c48" "" + , ppOrder = \(ws:_:t:_) -> [ws,t] + } + , workspaces = mWorkspaces + , modMask = mod4Mask + , normalBorderColor = "#170f0d" + , focusedBorderColor = "#746c48" + , borderWidth = 2 + , terminal = "urxvtc" + }