diff --git a/.Xdefaults b/.Xdefaults index 82f8ba9..3b701ee 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,21 +1,22 @@ -URxvt.buffered: true -URxvt.foreground: white -URxvt.cursorColor: green -URxvt.underlineColor: yellow -URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=12:antialias=false -URxvt.boldFont: xft:Bitstream Vera Sans Mono:bold:pixelsize=13:antialias=false -URxvt.perl-ext-common: default,tabbedex,url-select,keyboard-select,matcher -URxvt.keysym.M-u: perl:url-select:select_next -URxvt.urlLauncher: /usr/bin/conkeror -URxvt.underlineURLs: true -URxvt.matcher.button: 1 -URxvt.scrollstyle: plain +URxvt.buffered: true +URxvt.foreground: white +URxvt.cursorColor: green +URxvt.underlineColor: yellow +URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=12:antialias=false +URxvt.boldFont: xft:Bitstream Vera Sans Mono:bold:pixelsize=13:antialias=false +URxvt.perl-ext-common: default,tabbedex,url-select,keyboard-select,matcher +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.urlLauncher: /usr/bin/conkeror +URxvt.underlineURLs: true +URxvt.matcher.button: 1 +URxvt.scrollstyle: plain -URxvt.keysym.M-Escape: perl:keyboard-select:activate -URxvt.keysym.M-s: perl:keyboard-select:search +URxvt.keysym.M-Escape: perl:keyboard-select:activate +URxvt.keysym.M-s: perl:keyboard-select:search -URxvt.depth: 32 -URxvt.background: rgba:0000/0000/0000/cccc -URxvt.tabbed.tabbar-bg: -1 -urxvt.urgentOnBell: true +URxvt.depth: 32 +URxvt.background: rgba:0000/0000/0000/cccc +URxvt.tabbed.tabbar-bg: -1 +urxvt.urgentOnBell: true vncviewer.passwordDialog: true +Emacs.font: Terminus-12 diff --git a/.bashrc b/.bashrc index 1f591f8..e8b018d 100644 --- a/.bashrc +++ b/.bashrc @@ -11,6 +11,7 @@ alias ncmpc='ncmpc -c' alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && ' alias knkc='knk ssh rekahsoft-mini ' alias skreen='screen -c /dev/null' +alias tranr='transmission-remote' export GREP_COLOR="1;33" alias grep='grep --color=auto' @@ -28,7 +29,7 @@ stty stop undef # * mathematica / tools # * nxclient / associated tools # * maven tools -export PATH=${PATH}:/usr/local/bin:/opt/maven/bin:/opt/NX/bin +export PATH=${PATH}:/usr/local/bin:/opt/maven/bin:/opt/NX/bin:/home/collin/.cabal/bin # start keychain eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa` diff --git a/.conkerorrc b/.conkerorrc index 1ad1b45..9dd96ba 100644 --- a/.conkerorrc +++ b/.conkerorrc @@ -5,7 +5,7 @@ // REKAHSOFT-MINI // the default page for new buffers. -homepage = "http://www.google.ca"; +homepage = "http://www.duckduckgo.com"; // load urls from the command line in new buffers instead // of new windows. diff --git a/.emacs b/.emacs index 3dc19ae..5f6c749 100644 --- a/.emacs +++ b/.emacs @@ -25,13 +25,20 @@ (interactive) (other-window -1))) -;; Thanks to lauren michelle for this one -(defun pretty-lambdas () - (font-lock-add-keywords - nil `(("(\\(lambda\\>\\)" - (0 (progn (compose-region (match-beginning 1) (match-end 1) - ,(make-char 'greek-iso8859-7 107)) - nil)))))) +;; Thanks to lauren michelle for this one *BROKEN* +;; Seemingly broken in emacs24 (or at least when i noticed the issue). Throws +;; off font size of function names because font-lock-add-keywords is responsible +;; for fontifying function/variable definitions. Consistency of text size is not +;; affected when emacs is run in a terminal, only the GTK GUI front end. +;; Also really only should be applied to lisp-like +;; languages (because it parses for char '(' and endBy ')' and thus \x -> ... +;; or a lambda expression from any language must be wrapped in parens +;; (defun pretty-lambdas () +;; (font-lock-add-keywords +;; nil `(("(\\(lambda\\>\\)" +;; (0 (progn (compose-region (match-beginning 1) (match-end 1) +;; ,(make-char 'greek-iso8859-7 107)) +;; nil)))))) ;; adds the given function mode to each element of the given-hooks (defun activate-mode-with-hooks (mode given-hooks) @@ -40,8 +47,8 @@ mode) (setq given-hooks (cdr given-hooks)))) -;; Make lambda appear as the greek character -(activate-mode-with-hooks 'pretty-lambdas '(scheme-mode-hook lisp-mode-hook lisp-interaction-mode geiser-repl-mode python-mode emacs-lisp-mode)) +;; Make lambda appear as the greek character *BROKEN* -- read above +;;(activate-mode-with-hooks 'pretty-lambdas '(scheme-mode-hook lisp-mode-hook lisp-interaction-mode geiser-repl-mode python-mode emacs-lisp-mode)) ;; linum mode for pretty line numbering (require 'linum) @@ -57,7 +64,7 @@ 'face 'linum))) ;; code-modes is a list of mode hooks (for programming langs only) -(defvar code-modes '(scheme-mode-hook emacs-lisp-mode-hook c-mode-hook c++-mode-hook python-mode-hook lua-mode-hook haskell-mode-hook php-mode-hook perl-mode-hook lisp-mode-hook ruby-mode-hook sh-mode-hook)) +(defvar code-modes '(scheme-mode-hook emacs-lisp-mode-hook c-mode-hook c++-mode-hook python-mode-hook lua-mode-hook haskell-mode-hook php-mode-hook perl-mode-hook lisp-mode-hook clojure-mode-hook ruby-mode-hook sh-mode-hook)) ;; activate linum-mode in all buffers used for programming (activate-mode-with-hooks (lambda () (linum-mode 1)) code-modes) @@ -87,6 +94,9 @@ ;; Use the built-in themeing in emacs24 (load-theme 'manoj-dark) +;; Set the default font (12 pixels tall) +(set-default-font "Terminus-12") + ;; Set default tramp method to ssh (for security purposes) (setq tramp-default-method "ssh") @@ -252,6 +262,12 @@ (require 'paredit) (defvar paredit-hooks '(lisp-mode-hook lisp-interaction-mode-hook emacs-lisp-mode scheme-mode-hook c-mode-hook c++-mode-hook python-mode-hook)) +;; Paredit binds to C-j globally and thus disables the binding to +;; eval-print-last-sexp in *scratch*; this is more of a temporary +;; fix because it creates a global binding and thus can be run in +;; not only any emacs-lisp-mode buffer but any buffer +(global-set-key "\C-xj" 'eval-print-last-sexp) + ;; Apply paredit-mode to modes listed in paredit-hooks (activate-mode-with-hooks (lambda () (paredit-mode 1)) paredit-hooks) @@ -418,6 +434,16 @@ ;; *BROKEN* ;;(setq eshell-scroll-to-bottom-on-output t) +;; Commands that require a little more then a dumb-term +(setq eshell-visual-commands '("vi" "screen" "top" "less" "more" "lynx" "ncftp" "vim" "ncmpcpp" "irssi" "mc" "alsamixer" "/usr/bin/sudo")) + +(defun eshell/ff (fs) + "Find many files using eshell's built in regexps" + (interactive) + (if (listp fs) + (mapc #'find-file fs) + (find-file fs))) + (defun eshell/clear () "04Dec2001 - sailor, to clear the eshell buffer." (interactive) diff --git a/.screenrc b/.screenrc index ef884c6..66bff93 100644 --- a/.screenrc +++ b/.screenrc @@ -6,6 +6,9 @@ screen -t alsamixer 3 alsamixer screen -t mc 4 mc screen -t nvlc 5 nvlc +# Set default prefix from C-a to C-t +escape ^Tt + # Switch to window 1 (irssi) #screen -p irssi diff --git a/.xmobarrc b/.xmobarrc index a75e5e1..0e97e94 100644 --- a/.xmobarrc +++ b/.xmobarrc @@ -22,15 +22,18 @@ Config { font = "-*-terminus-*-*-*-*-35-*-*-*-*-*-*-u" , fgColor = "#00FFFF" , position = TopW L 96 , lowerOnStart = True - , commands = [ Run Network "eth0" ["-L","0","-H","32","-l", "green", "--normal","orange","--high","red"] 40 + , commands = [ Run Network "eth0" ["-L","0","-H","32","-l","green","--normal","orange","--high","red"] 40 -- , Run Com "/home/collin/.bin/vol.sh" [] "vol" 15 , Run MultiCpu ["-t","Cpu | cpu0: | cpu1: | cpu2: | cpu3: ","-L","3","-H","50","--high","#f0c040"] 10 - , Run Memory ["-t","Mem: %", "-l", "green", "--normal","orange","--high","red"] 40 + , Run Memory ["-t","Mem: %","-l","green","--normal","orange","--high","red"] 40 + , Run Swap ["-t","Swap: %","-l","green","--normal","orange","--high","red"] 60 , Run Date "%a %b %_d %l:%M %p" "date" 60 + , Run Uptime ["-t","Up: d h m","-l","green","--normal","orange","--high","red"] 60 + , Run Weather "CYKF" ["-t","Waterloo: C"] 36000 , Run CpuFreq ["-t","Freq: | GHz","-L","0","-H","2","-l","green","-n","orange","-h","red"] 50 , Run StdinReader ] , sepChar = "%" , alignSep = "}{" - , template = " %StdinReader% }{ %multicpu% | %memory% | %eth0% | %date% | " + , template = " %StdinReader% }{ %multicpu% %memory% | %swap% | %eth0% | %uptime% | %CYKF% | %date% | " } diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 455d63e..d3f4b4c 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -24,10 +24,11 @@ import XMonad import XMonad.Actions.UpdatePointer +import XMonad.Actions.WindowBringer import Data.Monoid import System.Exit import XMonad.Util.Run(spawnPipe) -import XMonad.Layout.NoBorders(smartBorders) +import XMonad.Layout.NoBorders(noBorders,smartBorders) import XMonad.Layout.ResizableTile import XMonad.Layout.Grid import XMonad.Layout.ToggleLayouts @@ -56,7 +57,7 @@ myFocusFollowsMouse = False -- Width of the window border in pixels. -- -myBorderWidth = 2 +myBorderWidth = 3 -- modMask lets you specify which modkey you want to use. The default -- is mod1Mask ("left alt"). You may also consider using mod3Mask @@ -113,8 +114,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $ [ ((modm .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf) -- launch dmenu - --, ((modm, xK_p ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"") - , ((modm, xK_p ), spawn "dmenu_run") + , ((modm, xK_p ), spawn "dmenu_run -i -nb '#040404' -nf '#00FFFF' -sf '#ffa0ff' -sb '#000000'") -- close focused window , ((modm .|. shiftMask, xK_c ), kill) @@ -250,6 +250,12 @@ myGenericKeys = -- Launch transmission scratchpad (formally deluge) , ((modm .|. controlMask, xK_4), namedScratchpadAction scratchpads "transmission") + -- Select window from dmenu and go to the workspace its on + , ((modm .|. shiftMask, xK_g), gotoMenuArgs ["-i","-nb", "#040404","-nf","#00FFFF","-sf","#ffa0ff","-sb","#000000"]) + + -- Select window from dmenu and drag it to the current workspace + , ((modm .|. shiftMask, xK_b), bringMenu) + -- Enable movement and resizing of floating windows , ((modm, xK_d), withFocused (keysMoveWindow (10,0))) -- move floating window right , ((modm, xK_a), withFocused (keysMoveWindow (-10,0))) -- move floating window left @@ -302,9 +308,9 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $ -- The available layouts. Note that each layout is separated by |||, -- which denotes layout choice. -- --- Add "toggleLayouts Full rztiled" to the layouts below (for --- Mod-Control-Space command) -myLayout = avoidStruts $ rztiled ||| Mirror rztiled ||| Grid ||| Full +myLayout = smartBorders . avoidStruts $ + toggleLayouts (noBorders Full) $ + rztiled ||| Mirror rztiled ||| Grid where -- default tiling algorithm partitions the screen into two panes tiled = Tall nmaster delta ratio @@ -480,7 +486,7 @@ defaults sxmproc = defaultConfig { mouseBindings = myMouseBindings, -- hooks, layouts - layoutHook = smartBorders (myLayout), + layoutHook = myLayout, manageHook = myManageHook, handleEventHook = myEventHook, logHook = myLogHook sxmproc >> updatePointer (Relative 0.5 0.5), diff --git a/.zshrc b/.zshrc index d5eb012..ba3eae0 100644 --- a/.zshrc +++ b/.zshrc @@ -26,6 +26,7 @@ alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && ' alias knkc='knk ssh rekahsoft-mini ' alias kgit='knk git' alias skreen='screen -c /dev/null' +alias tranr='transmission-remote' export GREP_COLOR="1;33" alias grep='grep --color=auto' @@ -43,7 +44,7 @@ stty stop undef # * mathematica / tools # * nxclient / associated tools # * maven tools -export PATH=${PATH}:/usr/local/bin:/opt/maven/bin:/opt/NX/bin +export PATH=${PATH}:/usr/local/bin:/opt/maven/bin:/opt/NX/bin:/home/collin/.cabal/bin # start keychain eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`