Initial commit for config project.
The main goal is to keep a generic git project that can be modified locally on a per user/host basis and then backuped using git clone and kept to date with git pull/fetch (on a per user/host basis with possible generic additions and upgrades gooing into the public git repo (still setting up the url) and the gitweb is here: http://rekahsoft.homelinux.org/gitweb
This commit is contained in:
commit
fd9702a05e
|
@ -0,0 +1,21 @@
|
|||
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/luakit
|
||||
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.depth: 32
|
||||
URxvt.background: rgba:0000/0000/0000/cccc
|
||||
URxvt.tabbed.tabbar-bg: -1
|
||||
urxvt.urgentOnBell: true
|
||||
vncviewer.passwordDialog: true
|
|
@ -0,0 +1 @@
|
|||
. $HOME/.bashrc
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
# Check for an interactive session
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
# Alias' to make bash prettier
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color-auto'
|
||||
alias egrep='egrep --color-auto'
|
||||
alias ncmpc='ncmpc -c'
|
||||
|
||||
export GREP_COLOR="1;33"
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
PS1='[\u@\h: \w]\$ '
|
||||
|
||||
# Turn off noscroll
|
||||
stty stop undef
|
||||
|
||||
# start keychain
|
||||
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
||||
|
||||
# Default editor
|
||||
export EDITOR="emacs -nw"
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
# (C) Copyright Collin Doering 2011
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# File: vol.sh
|
||||
# Author: Collin J. Doering <rekahsoft@gmail.com>
|
||||
# Date: Feb 22, 2011
|
||||
|
||||
#TODO: fix this horrible code..the obvious issues being multiple calls to amixer..have the needed data stored in VOL_DATA and then further parse the needed data from there
|
||||
|
||||
#VOL_DATA="$(amixer get Master | sed -n '5p')"
|
||||
VOLUME="$(amixer get Master | sed -n '5p' | cut -f6 -d' ' | sed 's/^.\(.*\).$/\1/')"
|
||||
VOL_STATUS="$(amixer get Master | sed -n '5p' | cut -f8 -d' ' | sed 's/^.\(.*\).$/\1/')"
|
||||
|
||||
if [ "$VOL_STATUS" == "off" ]; then
|
||||
echo "Vol: Mute"
|
||||
else
|
||||
echo "Vol: $VOLUME"
|
||||
fi
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
# (C) Copyright Collin Doering 2011
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# File: xmonadClose.sh
|
||||
# Author: Collin J. Doering <rekahsoft@gmail.com>
|
||||
# Date: May 13, 2011
|
||||
|
||||
if [[ `echo "" | dmenu -b -i -nb '#040404' -nf '#525252' -sf '#ffa0ff' -sb '#000000' -p "Do you really want to close XMonad? [yes/no]: "` == 'yes' ]]; then
|
||||
xdotool key super+control+shift+End
|
||||
fi
|
|
@ -0,0 +1,225 @@
|
|||
;; Date: Aug 19, 2010
|
||||
;; Author: Collin J. Doering
|
||||
;; Description: Emacs configuration file (in emacs lisp)
|
||||
|
||||
;; fixes color output issues; see: http://wiki.archlinux.org/index.php/Emacs#Colored_output_issues
|
||||
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
|
||||
|
||||
;; bind M-g to M-x goto-line
|
||||
(global-set-key "\M-g" 'goto-line)
|
||||
|
||||
;; adds the given function mode to each element of the given-hooks
|
||||
(defun activate-mode-with-hooks (mode given-hooks)
|
||||
(while given-hooks
|
||||
(add-hook (car given-hooks)
|
||||
mode)
|
||||
(setq given-hooks (cdr given-hooks))))
|
||||
|
||||
;; linum mode for pretty line numbering
|
||||
(require 'linum)
|
||||
|
||||
;; right justify the numbers and add a space between them and the text in the given buffer
|
||||
(setq linum-format
|
||||
(lambda (line)
|
||||
(propertize (format
|
||||
(let ((w (length (number-to-string
|
||||
(count-lines (point-min) (point-max))))))
|
||||
(concat "%" (number-to-string w) "d "))
|
||||
line)
|
||||
'face 'linum)))
|
||||
|
||||
;; linum-modes is a list of mode hooks to instantiate linum-mode on
|
||||
(defvar linum-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))
|
||||
(activate-mode-with-hooks (lambda () (linum-mode 1)) linum-modes)
|
||||
|
||||
;; load color-theme and initialize
|
||||
(require 'color-theme)
|
||||
(color-theme-initialize)
|
||||
|
||||
;; use a global color theme
|
||||
(color-theme-tty-dark)
|
||||
|
||||
;; make color-theme not applied globally and not cumunitive
|
||||
;;(setq color-theme-is-cumulative nil)
|
||||
;;(setq color-theme-is-global nil)
|
||||
|
||||
;; given a frame colorizes the frame
|
||||
;; if its window-system is X Windows the tty-dark theme will be applied otherwise it will be colorized tty-dark
|
||||
;;(defun apply-color-theme (frame)
|
||||
;; (select-frame frame)
|
||||
;; (if (eq (window-system frame) 'x)
|
||||
;; (color-theme-tty-dark)
|
||||
;; (color-theme-tty-dark)))
|
||||
|
||||
;; add the apply-color-theme function (hook) to be executed on the creation of a new frame
|
||||
;;(add-hook 'after-make-frame-functions 'apply-color-theme)
|
||||
|
||||
;; Set default tramp method to ssh (for security purposes)
|
||||
(setq tramp-default-method "ssh")
|
||||
|
||||
;; Setup ibuffer (interactive buffer)
|
||||
(global-set-key "\C-x\C-b" 'ibuffer)
|
||||
(autoload 'ibuffer "ibuffer" "List buffers." t)
|
||||
|
||||
;; Require ibuffer extentions (used for ibuffer-never-show-predicates)
|
||||
(require 'ibuf-ext)
|
||||
(add-to-list 'ibuffer-never-show-predicates "^\\*slime-events\\*$")
|
||||
(add-to-list 'ibuffer-never-show-predicates "^\\*Completions\\*$")
|
||||
(add-to-list 'ibuffer-never-show-predicates "^\\*tramp/.*\\*$")
|
||||
|
||||
;; Filter ibuffers (similar to gnus)
|
||||
(setq ibuffer-saved-filter-groups
|
||||
(quote (("default"
|
||||
("dired" (mode . dired-mode))
|
||||
("config" (or
|
||||
(name . "^\\.xinitrc$")
|
||||
(name . "^\\.bashrc$")
|
||||
(name . "^\\.bash_profile$")
|
||||
(name . "^\\.zshrc$")
|
||||
(name . "^xmonad\\.hs$")
|
||||
(name . "^\\.emacs$")
|
||||
(name . "^\\.gnus$")
|
||||
(name . "^\\.xmobarrc")
|
||||
(name . "^\\.Xdefaults$")
|
||||
(name . "^\\.screenrc$")
|
||||
(name . "^\\.xbindkeysrc$")))
|
||||
("code" (or
|
||||
(mode . c-mode)
|
||||
(mode . c++-mode)
|
||||
(mode . perl-mode)
|
||||
(mode . python-mode)
|
||||
(mode . ruby-mode)
|
||||
(mode . emacs-lisp-mode)
|
||||
(mode . lisp-mode)
|
||||
(mode . sh-mode)
|
||||
(mode . scheme-mode)
|
||||
(mode . php-mode)
|
||||
(mode . xml-mode)))
|
||||
("REPL" (or
|
||||
(mode . geiser-mode)
|
||||
(mode . slime-repl-mode)
|
||||
(name . "^\\*inferior-lisp\\*$")
|
||||
(name . "^\\* Racket REPL \\*$")))
|
||||
("planner" (or
|
||||
(name . "^\\*Calendar\\*$")
|
||||
(name . "^diary$")
|
||||
(mode . muse-mode)))
|
||||
("emacs" (or
|
||||
(name . "^\\*scratch\\*$")
|
||||
(name . "^\\*Messages\\*$")))
|
||||
("gnus" (or
|
||||
(mode . message-mode)
|
||||
(mode . bbdb-mode)
|
||||
(mode . mail-mode)
|
||||
(mode . gnus-group-mode)
|
||||
(mode . gnus-summary-mode)
|
||||
(mode . gnus-article-mode)
|
||||
(name . "^\\.bbdb$")
|
||||
(name . "^\\.newsrc-dribble")))))))
|
||||
|
||||
(add-hook 'ibuffer-mode-hook
|
||||
(lambda ()
|
||||
(ibuffer-switch-to-saved-filter-groups "default")))
|
||||
|
||||
;; setup html renderer w3m
|
||||
(require 'w3m-load)
|
||||
(setq browse-url-browser-function 'w3m-browse-url)
|
||||
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
|
||||
|
||||
;; setup php-mode
|
||||
(autoload 'php-mode "php-mode.el" "Php mode." t)
|
||||
(setq auto-mode-alist (append '(("/*.\.php[345]?$" . php-mode)) auto-mode-alist))
|
||||
|
||||
;; Set default lisp program
|
||||
(setq inferior-lisp-program "/usr/bin/sbcl")
|
||||
|
||||
;; Set usable lisp implementations
|
||||
(setq slime-lisp-implementations
|
||||
'((sbcl ("/usr/bin/sbcl" ""))
|
||||
(clisp ("/usr/bin/clisp" "-K full"))))
|
||||
|
||||
;; Function to start and/or connect to slime
|
||||
(defun start-slime ()
|
||||
(unless (slime-connected-p)
|
||||
(save-excursion (slime))))
|
||||
|
||||
;; Setup slime mode
|
||||
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
|
||||
(require 'slime)
|
||||
(add-hook 'slime-mode-hook 'start-slime)
|
||||
(slime-setup '(slime-fancy))
|
||||
|
||||
;; Setup emacs-org-mode
|
||||
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
|
||||
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
|
||||
(global-set-key "\C-cl" 'org-store-link)
|
||||
(global-set-key "\C-ca" 'org-agenda)
|
||||
(global-set-key "\C-cb" 'org-iswitchb)
|
||||
|
||||
;; Setup emacs-haskell-mode
|
||||
(load "/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file")
|
||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
|
||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
|
||||
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
|
||||
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
|
||||
|
||||
;; Setup emacs-python-mode
|
||||
(autoload 'python-mode "/usr/share/emacs/site-lisp/python-mode.el" "Python mode." t)
|
||||
(setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist))
|
||||
|
||||
;; Setup emacs-lua-mode
|
||||
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))
|
||||
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
|
||||
|
||||
;; Setup emacs-erlang-mode
|
||||
(setq erlang-root-dir "/usr/lib/erlang")
|
||||
(setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
|
||||
(require 'erlang-start)
|
||||
|
||||
;; Setup enhanced scheme/racket mode consisting of geiser, quack and paredit
|
||||
(require 'geiser-install)
|
||||
;(require 'quack)
|
||||
(require 'paredit)
|
||||
(defvar paredit-hooks '(lisp-mode-hook lisp-interaction-mode-hook scheme-mode-hook c-mode-hook c++-mode-hook python-mode-hook))
|
||||
(activate-mode-with-hooks (lambda () (paredit-mode 1)) paredit-hooks)
|
||||
|
||||
;; upcomming functionallity: toggle paredit-mode due to annoying things like wrapping parens when a mistake is made
|
||||
;; known issue..if paredit-mode is turned on when there are unbalanced parens an error is reported
|
||||
(defun toggle-paredit-mode ()
|
||||
(let ((active-minor-modes (list)))
|
||||
(mapatoms (lambda (sym)
|
||||
(when (and (symbolp sym) (assq sym minor-mode-alist) (symbol-value sym))
|
||||
(push sym active-minor-modes))))
|
||||
(if (member 'paredit-mode active-minor-modes) (paredit-mode -1) (paredit-mode 1))))
|
||||
|
||||
(setq geiser-repl-use-other-window nil)
|
||||
(setq geiser-active-implementations '(racket))
|
||||
|
||||
;; Make hs-minor-mode act like org-mode for code folding
|
||||
;;(add-to-list 'load-path "/usr/share/emacs/site-lisp/hideshow-org")
|
||||
(require 'hideshow-org)
|
||||
(global-set-key "\C-ch" 'hs-org/minor-mode)
|
||||
|
||||
;; Add automatic activation of hs-org/minor-mode in the below major-modes
|
||||
(add-hook 'c-mode-common-hook 'hs-org/minor-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook 'hs-org/minor-mode)
|
||||
(add-hook 'java-mode-hook 'hs-org/minor-mode)
|
||||
(add-hook 'lisp-mode-hook 'hs-org/minor-mode)
|
||||
(add-hook 'sh-mode-hook 'hs-org/minor-mode)
|
||||
(add-hook 'python-mode-hook 'hs-org/minor-mode)
|
||||
(add-hook 'scheme-mode-hook 'hs-org/minor-mode)
|
||||
|
||||
;; Insert current date at cursor in the currently active buffer
|
||||
(defun insert-date ()
|
||||
"Insert today's date into buffer"
|
||||
(interactive)
|
||||
(insert (format-time-string "%b %e, %Y" (current-time))))
|
||||
|
||||
;; Force ediff sessions to run in the same frame
|
||||
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
|
||||
|
||||
;; Remove menu-bar
|
||||
(menu-bar-mode -1)
|
||||
|
||||
;; Remove tool-bar
|
||||
(tool-bar-mode -1)
|
|
@ -0,0 +1,154 @@
|
|||
|
||||
[Midnight-Commander]
|
||||
verbose=1
|
||||
pause_after_run=1
|
||||
shell_patterns=1
|
||||
auto_save_setup=1
|
||||
auto_menu=0
|
||||
use_internal_view=1
|
||||
use_internal_edit=1
|
||||
clear_before_exec=1
|
||||
confirm_delete=1
|
||||
confirm_overwrite=1
|
||||
confirm_execute=0
|
||||
confirm_history_cleanup=1
|
||||
confirm_exit=1
|
||||
confirm_directory_hotlist_delete=1
|
||||
safe_delete=0
|
||||
mouse_repeat_rate=100
|
||||
double_click_speed=250
|
||||
use_8th_bit_as_meta=0
|
||||
confirm_view_dir=0
|
||||
mouse_move_pages_viewer=1
|
||||
mouse_close_dialog=0
|
||||
fast_refresh=0
|
||||
drop_menus=0
|
||||
wrap_mode=1
|
||||
old_esc_mode=0
|
||||
old_esc_mode_timeout=1000000
|
||||
cd_symlinks=1
|
||||
show_all_if_ambiguous=0
|
||||
max_dirt_limit=10
|
||||
torben_fj_mode=0
|
||||
use_file_to_guess_type=1
|
||||
alternate_plus_minus=0
|
||||
only_leading_plus_minus=1
|
||||
show_output_starts_shell=0
|
||||
xtree_mode=0
|
||||
num_history_items_recorded=60
|
||||
file_op_compute_totals=1
|
||||
classic_progressbar=1
|
||||
vfs_timeout=60
|
||||
ftpfs_directory_timeout=900
|
||||
use_netrc=1
|
||||
ftpfs_retry_seconds=30
|
||||
ftpfs_always_use_proxy=0
|
||||
ftpfs_use_passive_connections=1
|
||||
ftpfs_use_passive_connections_over_proxy=0
|
||||
ftpfs_use_unix_list_options=1
|
||||
ftpfs_first_cd_then_ls=1
|
||||
fish_directory_timeout=900
|
||||
editor_tab_spacing=8
|
||||
editor_word_wrap_line_length=72
|
||||
editor_fill_tabs_with_spaces=0
|
||||
editor_return_does_auto_indent=1
|
||||
editor_backspace_through_tabs=0
|
||||
editor_fake_half_tabs=1
|
||||
editor_option_save_mode=0
|
||||
editor_option_save_position=1
|
||||
editor_option_auto_para_formatting=0
|
||||
editor_option_typewriter_wrap=0
|
||||
editor_edit_confirm_save=1
|
||||
editor_syntax_highlighting=1
|
||||
editor_persistent_selections=1
|
||||
editor_cursor_beyond_eol=0
|
||||
editor_visible_tabs=1
|
||||
editor_visible_spaces=1
|
||||
editor_line_state=0
|
||||
editor_simple_statusbar=0
|
||||
editor_check_new_line=0
|
||||
editor_show_right_margin=0
|
||||
nice_rotating_dash=1
|
||||
horizontal_split=0
|
||||
mcview_remember_file_position=0
|
||||
auto_fill_mkdir_name=1
|
||||
copymove_persistent_attr=1
|
||||
select_flags=6
|
||||
editor_backup_extension=~
|
||||
mcview_eof=
|
||||
kilobyte_si=0
|
||||
mix_all_files=0
|
||||
show_backups=1
|
||||
show_dot_files=1
|
||||
fast_reload=0
|
||||
fast_reload_msg_shown=0
|
||||
mark_moves_down=1
|
||||
reverse_files_only=1
|
||||
navigate_with_arrows=0
|
||||
scroll_pages=1
|
||||
mouse_move_pages=1
|
||||
filetype_mode=1
|
||||
permission_mode=0
|
||||
quick_search_case_sensitive=2
|
||||
ignore_ftp_chattr_errors=true
|
||||
keymap=mc.keymap
|
||||
skin=gotar
|
||||
|
||||
filepos_max_saved_entries=1024
|
||||
|
||||
[Layout]
|
||||
equal_split=1
|
||||
first_panel_size=113
|
||||
message_visible=1
|
||||
keybar_visible=1
|
||||
xterm_title=1
|
||||
output_lines=0
|
||||
command_prompt=1
|
||||
menubar_visible=1
|
||||
show_mini_info=1
|
||||
free_space=1
|
||||
|
||||
[Misc]
|
||||
timeformat_recent=%b %e %H:%M
|
||||
timeformat_old=%b %e %Y
|
||||
ftp_proxy_host=gate
|
||||
ftpfs_password=anonymous@
|
||||
display_codepage=UTF-8
|
||||
source_codepage=Other_8_bit
|
||||
autodetect_codeset=
|
||||
clipboard_store=
|
||||
clipboard_paste=
|
||||
|
||||
[Colors]
|
||||
base_color=
|
||||
screen=
|
||||
color_terminals=
|
||||
|
||||
rxvt-unicode-256color=
|
||||
|
||||
xterm=
|
||||
|
||||
[Panels]
|
||||
kilobyte_si=false
|
||||
mix_all_files=false
|
||||
show_backups=true
|
||||
show_dot_files=true
|
||||
fast_reload=false
|
||||
fast_reload_msg_shown=false
|
||||
mark_moves_down=true
|
||||
reverse_files_only=true
|
||||
auto_save_setup_panels=true
|
||||
navigate_with_arrows=false
|
||||
panel_scroll_pages=true
|
||||
mouse_move_pages=true
|
||||
filetype_mode=true
|
||||
permission_mode=false
|
||||
quick_search_mode=2
|
||||
|
||||
[HotlistConfig]
|
||||
expanded_view_of_groups=0
|
||||
|
||||
[Panelize]
|
||||
Find *.orig after patching=find . -name \\*.orig -print
|
||||
Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm +011 \\) -o \\( -perm -02000 -a -perm +01 \\) \\) -print
|
||||
Find rejects after patching=find . -name \\*.rej -print
|
|
@ -0,0 +1,7 @@
|
|||
# Open several named screens at startup and run different commands in each
|
||||
screen -t bash 0 bash
|
||||
screen -t alsamixer 1 alsamixer
|
||||
#screen -t mc 2 mc *BROKEN*
|
||||
|
||||
# Set hard status line
|
||||
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}[%{W}%n%f %t%?(%u)%?%{=b kR}]%{= kw}%?%+Lw%?%?%=%{g}][%{Y}%l%{g}]%{=b C}[ %D %m/%d %C%a ]%{W}'
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# ~/.xinitrc
|
||||
#
|
||||
# Executed by startx (run your window manager from here)
|
||||
|
||||
# REKAHSOFT #
|
||||
|
||||
# Set the default curson used by xmonad
|
||||
xsetroot -cursor_name left_ptr
|
||||
|
||||
# Start xscreensaver
|
||||
xscreensaver -no-splash &
|
||||
|
||||
# Set a desktop background
|
||||
nitrogen --restore &
|
||||
|
||||
# Have mouse pointer hide after 5 seconds
|
||||
unclutter &
|
||||
|
||||
# Setup system tray
|
||||
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 2 --height 11 --transparent true --tint 0x000000 &
|
||||
|
||||
# Use xbindkeys to bind media keys etc..
|
||||
xbindkeys &
|
||||
|
||||
# Start-up applications
|
||||
parcellite &
|
||||
emacs --daemon &
|
||||
xcompmgr &
|
||||
|
||||
# Create variable GENERAL_SCREEN which is the pid of a screen called "general"
|
||||
export GENERAL_SCREEN=`screen -ls | grep general | cut -f1 -d'.' | sed 's/\W//g'`
|
||||
|
||||
# Check to see if a general screen is already running
|
||||
if [ "x$GENERAL_SCREEN" == "x" ]; then
|
||||
screen -dmS general &
|
||||
fi
|
||||
|
||||
# Set the default session to xmonad
|
||||
DEFAULT_SESSION=xmonad
|
||||
|
||||
# Check the given parameter from slim to determine the session being requested by slim/the user
|
||||
case $1 in
|
||||
xmonad)
|
||||
exec xmonad
|
||||
;;
|
||||
openbox)
|
||||
exec ck-launch-session openbox
|
||||
;;
|
||||
stumpwm)
|
||||
exec stumpwm
|
||||
;;
|
||||
*)
|
||||
exec $DEFAULT_SESSION
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,17 @@
|
|||
Config { font = "-*-terminus-*-*-*-*-35-*-*-*-*-*-*-u"
|
||||
, bgColor = "#000000"
|
||||
, fgColor = "#00FFFF"
|
||||
, position = TopW L 96
|
||||
, lowerOnStart = True
|
||||
, commands = [ Run Network "eth0" ["-L","0","-H","32","-l", "green", "--normal","orange","--high","red"] 40
|
||||
, Run Com "$HOME/.bin/vol.sh" [] "vol" 15
|
||||
, Run MultiCpu ["-t","Cpu <total>","-L","3","-H","50","--high","#f0c040"] 10
|
||||
, Run Memory ["-t","Mem: <usedratio>%", "-l", "green", "--normal","orange","--high","red"] 40
|
||||
, Run Date "%a %b %_d %l:%M %p" "date" 60
|
||||
, Run CpuFreq ["-t","Freq: <cpu0> | <cpu1> GHz","-L","0","-H","2","-l","green","-n","orange","-h","red"] 50
|
||||
, Run StdinReader
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " %StdinReader% }{ %vol% <fc=#0033FF>|</fc> %multicpu% <fc=#0033FF>|</fc> %memory% <fc=#0033FF>|</fc> %eth0% <fc=#0033FF>|</fc> %date% <fc=#0033FF>|</fc> "
|
||||
}
|
|
@ -0,0 +1,457 @@
|
|||
|
||||
-- File: ~/.xmonad/xmonad.hs
|
||||
-- Date: Sept 14, 2010
|
||||
-- Description: User configuration file for xmonad
|
||||
|
||||
-- REKAHSOFT --
|
||||
|
||||
--
|
||||
-- xmonad example config file for xmonad-0.9
|
||||
--
|
||||
-- A template showing all available configuration hooks,
|
||||
-- and how to override the defaults in your own xmonad.hs conf file.
|
||||
--
|
||||
-- Normally, you'd only override those defaults you care about.
|
||||
--
|
||||
-- NOTE: Those updating from earlier xmonad versions, who use
|
||||
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
|
||||
-- setup functions (dzen, xmobar) probably need to change
|
||||
-- xmonad.hs, please see the notes below, or the following
|
||||
-- link for more details:
|
||||
--
|
||||
-- http://www.haskell.org/haskellwiki/Xmonad/Notable_changes_since_0.8
|
||||
--
|
||||
|
||||
import XMonad
|
||||
import XMonad.Actions.UpdatePointer
|
||||
import Data.Monoid
|
||||
import System.Exit
|
||||
import XMonad.Util.Run(spawnPipe)
|
||||
import XMonad.Layout.NoBorders(smartBorders)
|
||||
import XMonad.Layout.ResizableTile
|
||||
import XMonad.Util.NamedScratchpad
|
||||
import XMonad.Actions.GridSelect
|
||||
import XMonad.Actions.FloatKeys
|
||||
import XMonad.Util.Dmenu
|
||||
|
||||
import XMonad.Hooks.ManageDocks
|
||||
import XMonad.Hooks.DynamicLog
|
||||
import XMonad.Hooks.UrgencyHook
|
||||
import XMonad.Hooks.ManageHelpers
|
||||
import System.IO
|
||||
|
||||
import qualified XMonad.StackSet as W
|
||||
import qualified Data.Map as M
|
||||
|
||||
-- The preferred terminal program, which is used in a binding below and by
|
||||
-- certain contrib modules.
|
||||
--
|
||||
myTerminal = "urxvt"
|
||||
|
||||
-- Whether focus follows the mouse pointer.
|
||||
myFocusFollowsMouse :: Bool
|
||||
myFocusFollowsMouse = False
|
||||
|
||||
-- Width of the window border in pixels.
|
||||
--
|
||||
myBorderWidth = 1
|
||||
|
||||
-- modMask lets you specify which modkey you want to use. The default
|
||||
-- is mod1Mask ("left alt"). You may also consider using mod3Mask
|
||||
-- ("right alt"), which does not conflict with emacs keybindings. The
|
||||
-- "windows key" is usually mod4Mask.
|
||||
--
|
||||
myModMask = mod4Mask
|
||||
|
||||
-- NOTE: from 0.9.1 on numlock mask is set automatically. The numlockMask
|
||||
-- setting should be removed from configs.
|
||||
--
|
||||
-- You can safely remove this even on earlier xmonad versions unless you
|
||||
-- need to set it to something other than the default mod2Mask, (e.g. OSX).
|
||||
--
|
||||
-- The mask for the numlock key. Numlock status is "masked" from the
|
||||
-- current modifier status, so the keybindings will work with numlock on or
|
||||
-- off. You may need to change this on some systems.
|
||||
--
|
||||
-- You can find the numlock modifier by running "xmodmap" and looking for a
|
||||
-- modifier with Num_Lock bound to it:
|
||||
--
|
||||
-- > $ xmodmap | grep Num
|
||||
-- > mod2 Num_Lock (0x4d)
|
||||
--
|
||||
-- Set numlockMask = 0 if you don't have a numlock key, or want to treat
|
||||
-- numlock status separately.
|
||||
--
|
||||
-- myNumlockMask = mod2Mask -- deprecated in xmonad-0.9.1
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
-- The default number of workspaces (virtual screens) and their names.
|
||||
-- By default we use numeric strings, but any string may be used as a
|
||||
-- workspace name. The number of workspaces is determined by the length
|
||||
-- of this list.
|
||||
--
|
||||
-- A tagging example:
|
||||
--
|
||||
-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
|
||||
--
|
||||
myWorkspaces = ["1:general","2:hack","3:code","4:prog","5:web","6:com","7:net","8:media","9:status","0:mail","esc:hide"]
|
||||
|
||||
-- Border colors for unfocused and focused windows, respectively.
|
||||
--
|
||||
myNormalBorderColor = "#dddddd"
|
||||
myFocusedBorderColor = "#ff0000"
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Key bindings. Add, modify or remove key bindings here.
|
||||
--
|
||||
myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||
|
||||
-- launch a terminal
|
||||
[ ((modm .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf)
|
||||
|
||||
-- launch dmenu
|
||||
, ((modm, xK_p ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
|
||||
|
||||
-- close focused window
|
||||
, ((modm .|. shiftMask, xK_c ), kill)
|
||||
|
||||
-- Rotate through the available layout algorithms
|
||||
, ((modm, xK_space ), sendMessage NextLayout)
|
||||
|
||||
-- Reset the layouts on the current workspace to default
|
||||
, ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
|
||||
|
||||
-- Resize viewed windows to the correct size
|
||||
, ((modm, xK_n ), refresh)
|
||||
|
||||
-- Move focus to the next window
|
||||
, ((modm, xK_Tab ), windows W.focusDown)
|
||||
|
||||
-- Move focus to the next window
|
||||
, ((modm, xK_j ), windows W.focusDown)
|
||||
|
||||
-- Move focus to the previous window
|
||||
, ((modm, xK_k ), windows W.focusUp )
|
||||
|
||||
-- Move focus to the master window
|
||||
, ((modm, xK_m ), windows W.focusMaster )
|
||||
|
||||
-- Swap the focused window and the master window
|
||||
, ((modm, xK_Return), windows W.swapMaster)
|
||||
|
||||
-- Swap the focused window with the next window
|
||||
, ((modm .|. shiftMask, xK_j ), windows W.swapDown )
|
||||
|
||||
-- Swap the focused window with the previous window
|
||||
, ((modm .|. shiftMask, xK_k ), windows W.swapUp )
|
||||
|
||||
-- Shrink the master area
|
||||
, ((modm, xK_h ), sendMessage Shrink)
|
||||
|
||||
-- Expand the master area
|
||||
, ((modm, xK_l ), sendMessage Expand)
|
||||
|
||||
-- Push window back into tiling
|
||||
, ((modm, xK_t ), withFocused $ windows . W.sink)
|
||||
|
||||
-- Increment the number of windows in the master area
|
||||
, ((modm , xK_comma ), sendMessage (IncMasterN 1))
|
||||
|
||||
-- Deincrement the number of windows in the master area
|
||||
, ((modm , xK_period), sendMessage (IncMasterN (-1)))
|
||||
|
||||
-- Toggle the status bar gap
|
||||
-- Use this binding with avoidStruts from Hooks.ManageDocks.
|
||||
-- See also the statusBar function from Hooks.DynamicLog.
|
||||
--
|
||||
-- , ((modm , xK_b ), sendMessage ToggleStruts)
|
||||
|
||||
-- Quit xmonad (no questions)
|
||||
, ((modm .|. shiftMask .|. controlMask, xK_End), io (exitWith ExitSuccess))
|
||||
|
||||
-- Quit xmonad (user friendly)
|
||||
, ((modm .|. shiftMask, xK_q ), spawn "~/.bin/xmonadClose.sh")
|
||||
|
||||
--, ((modm .|. shiftMask, xK_w ), if (dmenu "-b -i -nb '#040404' -nf '#525252' -sf '#ffa0ff' -sb '#000000' -p \"Do you really want to close XMonad? [yes/no]: \"") == "yes" then (sendMessage Expand) else (sendMessage Shrink))
|
||||
|
||||
-- Restart xmonad
|
||||
, ((modm , xK_q ), spawn "pkill -9 xmobar; xmonad --recompile; xmonad --restart") ]
|
||||
++
|
||||
|
||||
--
|
||||
-- mod-[1..9], Switch to workspace N
|
||||
--
|
||||
-- mod-[1..9], Switch to workspace N
|
||||
-- mod-shift-[1..9], Move client to workspace N
|
||||
--
|
||||
[((m .|. modm, k), windows $ f i)
|
||||
| (i, k) <- zip (XMonad.workspaces conf) ([xK_1 .. xK_9] ++ [xK_0, xK_Escape])
|
||||
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
|
||||
-- Add custom key bindings
|
||||
++ myGenericKeys
|
||||
|
||||
++
|
||||
-- Modification due to xinerama screens being in the wrong order
|
||||
[((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
|
||||
| (key, sc) <- zip [xK_w, xK_e, xK_r] [1,0,2] -- was [1,0,2] *** change to match your screen order ***
|
||||
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
|
||||
|
||||
-- Custom generic key bindings
|
||||
-- Note: Use mod4Mask and controlMask to launch non-standard apps
|
||||
myGenericKeys =
|
||||
|
||||
-- Lock the screen using xscreensaver
|
||||
[ ((modm .|. shiftMask, xK_v), spawn "xscreensaver-command -lock")
|
||||
|
||||
-- Enable switching of windows with gridselect
|
||||
, ((modm, xK_g), goToSelected defaultGSConfig)
|
||||
|
||||
-- Launch a backup terminal
|
||||
, ((modm .|. controlMask, xK_Return), spawn "xterm")
|
||||
|
||||
-- Launch firefox (now luakit)
|
||||
|
||||
, ((modm .|. controlMask, xK_f), spawn "luakit")
|
||||
|
||||
-- Launch emacs
|
||||
, ((modm .|. controlMask, xK_e), spawn "emacsclient -c")
|
||||
|
||||
-- Launch tuxcmd
|
||||
, ((modm .|. controlMask, xK_t), spawn "tucmd")
|
||||
|
||||
-- Launch zathura
|
||||
, ((modm .|. controlMask, xK_z), spawn "zathura")
|
||||
|
||||
-- Launch openoffice (now libreoffice)
|
||||
, ((modm .|. controlMask, xK_o), spawn "libreoffice")
|
||||
|
||||
-- Launch vlc
|
||||
, ((modm .|. controlMask, xK_v), spawn "vlc")
|
||||
|
||||
-- Launch a screen scratchpad terminal
|
||||
, ((modm .|. controlMask, xK_1), namedScratchpadAction scratchpads "screen-terminal")
|
||||
|
||||
-- Launch a maintainance scratchpad
|
||||
, ((modm .|. controlMask, xK_2), namedScratchpadAction scratchpads "maintainance-terminal")
|
||||
|
||||
-- Launch deluge scratchpad
|
||||
, ((modm .|. controlMask, xK_3), namedScratchpadAction scratchpads "deluge")
|
||||
|
||||
-- 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
|
||||
, ((modm, xK_s), withFocused (keysMoveWindow (0,-10))) -- move floating window up
|
||||
, ((modm, xK_x), withFocused (keysMoveWindow (0,10))) -- move floating window down
|
||||
-- , ((modm .|. shiftMask, xK_a), withFocused (keysResizeWindow (-10,0) (0,0))) -- resize floating window (left)
|
||||
-- , ((modm .|. shiftMask, xK_d), withFocused (keysResizeWindow (10,0) (0,0))) -- resize floating window (right)
|
||||
-- , ((modm .|. shiftMask, xK_s), withFocused (keysResizeWindow (0,-10) (0,0))) -- resize floating window (up)
|
||||
-- , ((modm .|. shiftMask, xK_x), withFocused (keysResizeWindow (0,-10) (0,1))) -- resize floating window (down)
|
||||
|
||||
-- Expand a mirror pane
|
||||
, ((modm .|. shiftMask, xK_l), sendMessage MirrorExpand)
|
||||
|
||||
-- Shrink a mirror pane
|
||||
, ((modm .|. shiftMask, xK_h), sendMessage MirrorShrink) ] where modm = mod4Mask
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Mouse bindings: default actions bound to mouse events
|
||||
--
|
||||
myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||
|
||||
-- mod-button1, Set the window to floating mode and move by dragging
|
||||
[ ((modm, button1), (\w -> focus w >> mouseMoveWindow w
|
||||
>> windows W.shiftMaster))
|
||||
|
||||
-- mod-button2, Raise the window to the top of the stack
|
||||
, ((modm, button2), (\w -> focus w >> windows W.shiftMaster))
|
||||
|
||||
-- mod-button3, Set the window to floating mode and resize by dragging
|
||||
, ((modm, button3), (\w -> focus w >> mouseResizeWindow w
|
||||
>> windows W.shiftMaster))
|
||||
|
||||
-- you may also bind events to the mouse scroll wheel (button4 and button5)
|
||||
]
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Layouts:
|
||||
|
||||
-- You can specify and transform your layouts by modifying these values.
|
||||
-- If you change layout bindings be sure to use 'mod-shift-space' after
|
||||
-- restarting (with 'mod-q') to reset your layout state to the new
|
||||
-- defaults, as xmonad preserves your old layout settings by default.
|
||||
--
|
||||
-- * NOTE: XMonad.Hooks.EwmhDesktops users must remove the obsolete
|
||||
-- ewmhDesktopsLayout modifier from layoutHook. It no longer exists.
|
||||
-- Instead use the 'ewmh' function from that module to modify your
|
||||
-- defaultConfig as a whole. (See also logHook, handleEventHook, and
|
||||
-- startupHook ewmh notes.)
|
||||
--
|
||||
-- The available layouts. Note that each layout is separated by |||,
|
||||
-- which denotes layout choice.
|
||||
--
|
||||
myLayout = avoidStruts $ rztiled ||| Mirror rztiled ||| Full
|
||||
where
|
||||
-- default tiling algorithm partitions the screen into two panes
|
||||
tiled = Tall nmaster delta ratio
|
||||
|
||||
-- ResizeableTall arguments
|
||||
rztiled = ResizableTall nmaster delta ratio []
|
||||
|
||||
-- The default number of windows in the master pane
|
||||
nmaster = 1
|
||||
|
||||
-- Default proportion of screen occupied by master pane
|
||||
ratio = 1/2
|
||||
|
||||
-- Percent of screen to increment by when resizing panes
|
||||
delta = 3/100
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Window rules:
|
||||
|
||||
-- Execute arbitrary actions and WindowSet manipulations when managing
|
||||
-- a new window. You can use this to, for example, always float a
|
||||
-- particular program, or have a client always appear on a particular
|
||||
-- workspace.
|
||||
--
|
||||
-- To find the property name associated with a program, use
|
||||
-- > xprop | grep WM_CLASS
|
||||
-- and click on the client you're interested in.
|
||||
--
|
||||
-- To match on the WM_NAME, you can use 'title' in the same way that
|
||||
-- 'className' and 'resource' are used below.
|
||||
--
|
||||
myManageHook = composeAll
|
||||
[ className =? "MPlayer" --> doFloat
|
||||
-- , title =? "DOOM 3" --> doIgnore
|
||||
, resource =? "Qt-subapplication" <&&> title /=? "Oracle VM VirtualBox Manager" --> doFloat
|
||||
, resource =? "vncviewer" --> doCenterFloat
|
||||
, resource =? "Steam.exe" --> doCenterFloat
|
||||
-- , resource =? "hl2.exe" --> doCenterFloat
|
||||
, isFullscreen --> (doF W.focusDown <+> doFullFloat)
|
||||
, resource =? "desktop_window" --> doIgnore ] <+> namedScratchpadManageHook scratchpads <+> manageDocks
|
||||
|
||||
-- NamedScratchPad Hook
|
||||
scratchpads = [ NS "maintainance-terminal" spawnMaintainanceTerminal findMaintainanceTerminal manageMaintainanceTerminal
|
||||
, NS "screen-terminal" spawnScreenTerminal findScreenTerminal manageScreenTerminal
|
||||
, NS "deluge" spawnDeluge findDeluge manageDeluge ]
|
||||
where
|
||||
findMaintainanceTerminal = resource =? "scratchpad"
|
||||
findScreenTerminal = resource =? "screen-scratch"
|
||||
findDeluge = resource =? "deluge-gtk"
|
||||
|
||||
spawnMaintainanceTerminal = myTerminal ++ " -name scratchpad"
|
||||
spawnScreenTerminal = myTerminal ++ " -name screen-scratch -bg black"
|
||||
spawnDeluge = "deluge-gtk"
|
||||
|
||||
manageMaintainanceTerminal = customFloating $ W.RationalRect l t w h
|
||||
where
|
||||
h = 0.33 -- terminal height (%)
|
||||
w = 1 -- terminal width (%)
|
||||
t = 1 - h -- distance from top edge (%)
|
||||
l = 1 - w -- distance from left edge (%)
|
||||
manageScreenTerminal = customFloating $ W.RationalRect l t w h
|
||||
where
|
||||
h = 0.98 -- terminal height (%)
|
||||
w = 1 -- terminal width (%)
|
||||
t = 1 - h -- distance from top edge (%)
|
||||
l = 1 - w -- distance from left edge (%)
|
||||
manageDeluge = customFloating $ W.RationalRect l t w h
|
||||
where
|
||||
h = 0.98 -- terminal height (%)
|
||||
w = 1 -- terminal width (%)
|
||||
t = 1 - h -- distance from top edge (%)
|
||||
l = 1 - w -- distance from left edge (%)
|
||||
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Event handling
|
||||
|
||||
-- Defines a custom handler function for X Events. The function should
|
||||
-- return (All True) if the default handler is to be run afterwards. To
|
||||
-- combine event hooks use mappend or mconcat from Data.Monoid.
|
||||
--
|
||||
-- * NOTE: EwmhDesktops users should use the 'ewmh' function from
|
||||
-- XMonad.Hooks.EwmhDesktops to modify their defaultConfig as a whole.
|
||||
-- It will add EWMH event handling to your custom event hooks by
|
||||
-- combining them with ewmhDesktopsEventHook.
|
||||
--
|
||||
myEventHook = mempty
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Status bars and logging
|
||||
|
||||
-- Perform an arbitrary action on each internal state change or X event.
|
||||
-- See the 'XMonad.Hooks.DynamicLog' extension for examples.
|
||||
--
|
||||
--
|
||||
-- * NOTE: EwmhDesktops users should use the 'ewmh' function from
|
||||
-- XMonad.Hooks.EwmhDesktops to modify their defaultConfig as a whole.
|
||||
-- It will add EWMH logHook actions to your custom log hook by
|
||||
-- combining it with ewmhDesktopsLogHook.
|
||||
--
|
||||
myLogHook h = dynamicLogWithPP $ xmobarPP
|
||||
{ ppOutput = hPutStrLn h
|
||||
, ppUrgent = xmobarColor "yellow" "red" . xmobarStrip
|
||||
, ppHidden = (\ ws -> "") }
|
||||
|
||||
-- where
|
||||
-- noScratchPad ws = if ws == "NSP" then "" else ws
|
||||
-- TODO: hide workspace esc:hide; if (ws == "NSP" || ws == "esc:hide") then "" else ws)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Startup hook
|
||||
|
||||
-- Perform an arbitrary action each time xmonad starts or is restarted
|
||||
-- with mod-q. Used by, e.g., XMonad.Layout.PerWorkspace to initialize
|
||||
-- per-workspace layout choices.
|
||||
--
|
||||
-- By default, do nothing.
|
||||
--
|
||||
-- * NOTE: EwmhDesktops users should use the 'ewmh' function from
|
||||
-- XMonad.Hooks.EwmhDesktops to modify their defaultConfig as a whole.
|
||||
-- It will add initialization of EWMH support to your custom startup
|
||||
-- hook by combining it with ewmhDesktopsStartup.
|
||||
--
|
||||
myStartupHook = return ()
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Now run xmonad with all the defaults we set up.
|
||||
|
||||
-- Run xmonad with the settings you specify. No need to modify this.
|
||||
--
|
||||
main = do
|
||||
xmproc <- spawnPipe "xmobar"
|
||||
xmonad $ withUrgencyHook NoUrgencyHook $ defaults xmproc
|
||||
|
||||
-- A structure containing your configuration settings, overriding
|
||||
-- fields in the default config. Any you don't override, will
|
||||
-- use the defaults defined in xmonad/XMonad/Config.hs
|
||||
--
|
||||
-- No need to modify this.
|
||||
--
|
||||
defaults sxmproc = defaultConfig {
|
||||
-- simple stuff
|
||||
terminal = myTerminal,
|
||||
focusFollowsMouse = myFocusFollowsMouse,
|
||||
borderWidth = myBorderWidth,
|
||||
modMask = myModMask,
|
||||
-- numlockMask deprecated in 0.9.1
|
||||
-- numlockMask = myNumlockMask,
|
||||
workspaces = myWorkspaces,
|
||||
normalBorderColor = myNormalBorderColor,
|
||||
focusedBorderColor = myFocusedBorderColor,
|
||||
|
||||
-- key bindings
|
||||
keys = myKeys,
|
||||
mouseBindings = myMouseBindings,
|
||||
|
||||
-- hooks, layouts
|
||||
layoutHook = smartBorders (myLayout),
|
||||
manageHook = myManageHook,
|
||||
handleEventHook = myEventHook,
|
||||
logHook = myLogHook sxmproc >> updatePointer (Relative 0.5 0.5),
|
||||
startupHook = myStartupHook
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' completer _complete _ignored _approximate
|
||||
zstyle :compinstall filename '/home/collin/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
bindkey -e
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
||||
# Check for an interactive session
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
# Alias' to make bash prettier
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color-auto'
|
||||
alias egrep='egrep --color-auto'
|
||||
alias ncmpc='ncmpc -c'
|
||||
|
||||
export GREP_COLOR="1;33"
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
PS1="[%n@%M: %~]%% "
|
||||
|
||||
# Turn off noscroll
|
||||
stty stop undef
|
||||
|
||||
# start keychain
|
||||
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
||||
|
||||
# Default editor
|
||||
export EDITOR="emacs -nw"
|
Reference in New Issue