Last active
September 26, 2015 17:48
-
-
Save danwoods/1135562 to your computer and use it in GitHub Desktop.
Personal config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
# make less more friendly for non-text input files, see lesspipe(1) | |
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |
# set variable identifying the chroot you work in (used in the prompt below) | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-color) color_prompt=yes;; | |
esac | |
# uncomment for a colored prompt, if the terminal has the capability; turned | |
# off by default to not distract the user: the focus in a terminal window | |
# should be on the output of commands, not on the prompt | |
#force_color_prompt=yes | |
if [ -n "$force_color_prompt" ]; then | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
# We have color support; assume it's compliant with Ecma-48 | |
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such | |
# a case would tend to support setf rather than setaf.) | |
color_prompt=yes | |
else | |
color_prompt= | |
fi | |
fi | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi | |
unset color_prompt force_color_prompt | |
# If this is an xterm set the title to user@host:dir | |
case "$TERM" in | |
xterm*|rxvt*) | |
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" | |
;; | |
*) | |
;; | |
esac | |
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
#alias dir='dir --color=auto' | |
#alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
# Alias definitions. | |
# You may want to put all your additions into a separate file like | |
# ~/.bash_aliases, instead of adding them here directly. | |
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# enable programmable completion features (you don't need to enable | |
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
# sources /etc/bash.bashrc). | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
. /etc/bash_completion | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#danwoods conky config file 2010/08/16 | |
# Use Xft? | |
use_xft yes | |
xftfont Trebuchet MS:size=8 | |
xftalpha 0.8 | |
text_buffer_size 2048 | |
# Update interval in seconds | |
update_interval 1 | |
# This is the number of times Conky will update before quitting. | |
# Set to zero to run forever. | |
total_run_times 0 | |
# Create own window instead of using desktop (required in nautilus) | |
own_window yes | |
own_window_transparent yes | |
own_window_type override | |
#normal: bg:yes => Stays in background but disappears on full min | |
#normal: bg:no => Stays in background but disappears on full min | |
#override: bg:yes => Sometimes Doesn't load (when does, sticks in front), but when started from terminal works #perfect (no border) | |
#desktop: bg:no => Doesn't show up | |
#desktop: bg:yes => Disappears on click | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | |
background no | |
# Use double buffering (reduces flicker, may not work for everyone) | |
double_buffer yes | |
# Minimum size of text area | |
minimum_size 180 0 | |
# Draw shades? | |
draw_shades no | |
# Draw outlines? | |
draw_outline no | |
# Draw borders around text | |
draw_borders no | |
# Stippled borders? | |
stippled_borders 0 | |
# border margins | |
border_margin 5 | |
# border width | |
border_width 1 | |
# Default colors and also border colors | |
default_color ffffff | |
own_window_colour ffffff | |
# Text alignment, other possible values are commented | |
alignment top_right | |
# Gap between borders of screen and text | |
# same thing as passing -x at command line | |
gap_x 35 | |
gap_y 35 | |
# Subtract file system buffers from used memory? | |
no_buffers yes | |
# set to yes if you want all text to be in uppercase | |
uppercase no | |
# number of cpu samples to average | |
# set to 1 to disable averaging | |
cpu_avg_samples 2 | |
# number of net samples to average | |
# set to 1 to disable averaging | |
net_avg_samples 2 | |
# Force UTF8? note that UTF8 support required XFT | |
override_utf8_locale yes | |
# Add spaces to keep things from moving about? This only affects certain objects. | |
use_spacer none | |
TEXT | |
SYSTEM ${hr 2} | |
#Kernel: ${alignr}${kernel} | |
#CPU: ${cpu cpu}% ${alignr}${cpubar 8,60 cpu} | |
#RAM: $memperc% ${alignr}${membar 8,60} | |
#Uptime: ${alignr}${uptime} | |
${alignc}${nodename} | |
DATE ${hr 2} | |
${alignc}${time %a %d %b %Y} | |
${alignc 35}${font Trebuchet MS:size=26}${time %l:%M}${font} | |
#HD ${hr 2} | |
#Home: | |
#${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home} | |
#Root: | |
#${fs_free /root}/${fs_size /root} ${alignr}${fs_bar 8,60 /root} | |
NETWORK ${hr 2} | |
${if_existing /proc/net/route wlan0} | |
Network: ${alignr}${wireless_essid wlan0} | |
#Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C} | |
#Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C} | |
#Upload: ${alignr}${totalup wlan0} | |
#Download: ${alignr}${totaldown wlan0} | |
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route eth0} | |
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C} | |
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C} | |
Upload: ${alignr}${totalup eth0} | |
Download: ${alignr}${totaldown eth0}${endif}${else}${if_existing /proc/net/route eth1} | |
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C} | |
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C} | |
Upload: ${alignr}${totalup eth1} | |
Download: ${alignr}${totaldown eth1}${endif}${else}${font PizzaDude Bullets:size=14}4${font} Network Unavailable${endif} | |
#NOTE: CONKY COUNTS NEWLINES AS VERTICAL SPACING, SO EVERYTHING IS ON ONE LINE | |
TODO ${hr 2}${if_match ${time %w} == 0}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Sunday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 1}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Monday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 2}${voffset 0}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Tuesday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 3}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Wednesday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 4}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Thursday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 5}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Friday/!d;' /home/dan/Documents/to_do_weekly.txt}${else}${if_match ${time %w} == 6}${execi 360 sed -e '/./{H;$!d;}' -e 'x;/Saturday/!d;' /home/dan/Documents/to_do_weekly.txt}${endif} | |
#MUSIC ${hr 2} | |
#${alignc 35}${font Buttons and Switches JL:size=38}J${font} | |
#${voffset 7}${exec conkyExaile --datatype=TI} by ${exec conkyExaile --datatype=AR} | |
#WEATHER ${hr 2} | |
#${if_existing /proc/net/route wlan0} | |
#${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font} | |
#${voffset -52}${font Weather:size=40}y${font} ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font} | |
#BREAK | |
#${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM} | |
#${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP} | |
#${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS} | |
#${else}${if_existing /proc/net/route eth0} | |
#${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font} | |
#${voffset -52}${font Weather:size=40}y${font} ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font} | |
#BREAK | |
#${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM} | |
#${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP} | |
#${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS} | |
#${endif}${else}${if_existing /proc/net/route eth1} | |
#${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=FIXX0020 --datatype=WF}${font} | |
#${voffset -52}${font Weather:size=40}y${font} ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=FIXX0020 --datatype=HT}${font} | |
#BREAK | |
#${voffset 0}Humidity: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=HM} | |
#${voffset 0}Moon Phase: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=MP} | |
#${voffset 0}${font}Wind Speed: ${alignr}${execi 600 conkyForecast --location=FIXX0020 --datatype=WS} | |
#${endif}${else} | |
#${font PizzaDude Bullets:size=14}4${font} Weather Unavailable | |
#${endif} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set noautoindent | |
setlocal comments-=:// | |
""Set better title bar | |
set title | |
au FileType * setl fo-=cro | |
"" set tabs | |
set tabstop=2 | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set ai | |
set number | |
"" set folding | |
set foldmethod=indent | |
set nofoldenable | |
set foldlevel=1 | |
""set foldnestmax=1 | |
"" add status bar | |
set ruler | |
set ls=2 | |
"" allow plugins | |
filetype on | |
filetype plugin on | |
"" allow syntax | |
syntax enable | |
"" set color scheme | |
set background=dark | |
let g:solarized_termcolors=256 | |
set t_Co=256 | |
colorscheme solarized | |
"" set mapping | |
imap ' <C-V>'<C-V>'<Left> | |
imap " <C-V>"<C-V>"<Left> | |
imap ( <C-V>(<C-V>)<Left> | |
imap { <C-V>{<C-V>}<Left> | |
imap [ <C-V>[<C-V>]<Left> | |
nmap < :tabprevious<CR> | |
nmap > :tabnext<CR> | |
"" set custom commands | |
command Z NERDTreeToggle | |
""Set the cursor to the last working position | |
set viminfo='10,\"100,:20,%,n~/.viminfo | |
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!! drop in Solarized colorscheme for Xresources/Xdefaults | |
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB | |
!!--------- ------- ---- ------- ----------- ---------- ----------- ----------- | |
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 | |
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26 | |
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46 | |
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51 | |
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59 | |
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63 | |
!!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93 | |
!!base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99 | |
!!yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71 | |
!!orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80 | |
!!red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86 | |
!!magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83 | |
!!violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77 | |
!!blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82 | |
!!cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63 | |
!!green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60 | |
#define S_base03 #002b36 | |
#define S_base02 #073642 | |
#define S_base01 #586e75 | |
#define S_base00 #657b83 | |
#define S_base0 #839496 | |
#define S_base1 #93a1a1 | |
#define S_base2 #eee8d5 | |
#define S_base3 #fdf6e3 | |
#define S_yellow #b58900 | |
#define S_orange #cb4b16 | |
#define S_red #dc322f | |
#define S_magenta #d33682 | |
#define S_violet #6c71c4 | |
#define S_blue #268bd2 | |
#define S_cyan #2aa198 | |
#define S_green #859900 | |
*background: S_base03 | |
*foreground: S_base00 | |
*fading: 40 | |
*fadeColor: S_base03 | |
*cursorColor: S_base1 | |
*pointerColorBackground:S_base01 | |
*pointerColorForeground:S_base1 | |
!! black dark/light | |
*color0: S_base02 | |
*color8: S_base03 | |
!! red dark/light | |
*color1: S_red | |
*color9: S_orange | |
!! green dark/light | |
*color2: S_green | |
*color10: S_base01 | |
!! yellow dark/light | |
*color3: S_yellow | |
*color11: S_base00 | |
!! blue dark/light | |
*color4: S_blue | |
*color12: S_base0 | |
!! magenta dark/light | |
*color5: S_magenta | |
*color13: S_violet | |
!! cyan dark/light | |
*color6: S_cyan | |
*color14: S_base1 | |
!! white dark/light | |
*color7: S_base2 | |
*color15: S_base3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment