ZSH, Atom, i3, Portage

This commit is contained in:
Tim 2016-06-06 20:15:40 +10:00
parent 2c5c17d695
commit 8105555b3d
15 changed files with 843 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.un~

44
.vimrc Normal file
View File

@ -0,0 +1,44 @@
set nocompatible
filetype off
" Vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Indentation related
set tabstop=4 " How many spaces for a tab
set expandtab " Expand tab to spaces
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
" View related
set cursorline " Highlight cursor line
set showmatch " Match brackets
syntax on
" Search related
set incsearch " Incremental search
set hlsearch " Highlight search
set ignorecase
set smartcase " Ignore ignorecase when uppercase characters are present
" Navigation related
set scrolloff=3 " Minimum number of lines to show below/above the cursor
" Shortcuts
set pastetoggle=<F2>
" Persistent undo
set undofile
set undolevels=1000
set undoreload=1000
" Plugins
Bundle 'gmarik/vundle'
Bundle 'davidhalter/jedi-vim'
Bundle 'pathogen.vim'
filetype plugin indent on

85
.xinitrc Normal file
View File

@ -0,0 +1,85 @@
#!/bin/sh
#eval "$(gpg-agent --daemon)"
#urxvtd -q -o -f && urxvtc &
#amixer -q set Headphone mute &
#feh --bg-scale docs/multimedia/images/wallpapers/006.jpg &
display -flop -backdrop -window root /home/hd215/Pictures/5WNZg.jpg
#display -window root /home/hd215/Pictures/tYmM8.jpg
#xsetroot -solid black
#sleep 3 && firefox &
wifi(){
STATUS="X`/sbin/iwgetid`"
if test "$STATUS" != "X" ; then
ESSID="`/sbin/iwgetid |awk -F ":" '{print $2}'|sed -e 's/"//g'`"
LINK="`awk '/ra0:/ {print $3}' /proc/net/wireless |sed -e 's/\.//g'`"
echo " $ESSID:$LINK"
fi
}
batt(){
FULL=`cat /sys/class/power_supply/BAT0/charge_full`
PRESENT=`cat /sys/class/power_supply/BAT0/present`
CHARGE=`cat /sys/class/power_supply/BAT0/charge_now`
STATUS=`cat /sys/class/power_supply/BAT0/status`
if test "$PRESENT" != "0" ; then
CHARGE=$((${CHARGE}*100/${FULL}))
case $STATUS in
Full)
SIGN="=";;
Charging)
SIGN="+";;
Discharging)
SIGN="-";;
esac
if test "${CHARGE}" -lt "15" & "${SIGN}" = "-" ; then
echo " LOW POWER ${CHARGE}${SIGN}"
else
echo " ${CHARGE}${SIGN}"
fi
else
echo " AC"
fi
}
volume(){
STATUS="`amixer get Master |awk '/Mono:/ {print $6}'`"
if test "$STATUS" != "[on]" ; then
echo " Mute"
else
echo " `/usr/bin/amixer get Master |awk '/Mono:/ {print $4}' | sed -e 's/\[//g'|sed -e 's/%\]//g'`v"
fi
}
cmusstats(){
if test "X`pgrep cmus`" != "X" ; then
TIME="`cmus-remote -Q |awk '/duration/ {print $2}'`"
CURR="`cmus-remote -Q |awk '/position/ {print $2}'`"
ARTIST="`cmus-remote -Q |sed -ne '/artist/s/tag artist //pg'`"
TITLE="`cmus-remote -Q |sed -ne '/title/s/tag title //pg'`"
echo "$TITLE ($ARTIST) $CURR/$TIME"
fi
}
while true; do
xsetroot -name "`cmusstats``wifi``volume``batt` `date '+%a %Y%m%d %H:%M'`"
sleep 1
done &
#export XDG_MENU_PREFIX=gnome-
#exec ck-launch-session gnome-session
#exec ck-launch-session dwm
#exec gnome-session
#exec dwm
exec ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm"
#while true; do
# Log stderror to a file
# ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm 2> ~/.dwm.log"
#dwm 2> ~/.dwm.log
# no error logging
#dwm >/dev/null 2> &1
#done

46
.zshrc Normal file
View File

@ -0,0 +1,46 @@
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gentoo"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
#alias ohmyzsh="mate ~/.oh-my-zsh"
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
#echo "+++++++"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
#echo "PLUG"
source $ZSH/oh-my-zsh.sh
#echo "SOURVE"
# Customize to your needs...
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin:~/bin
#echo "EXPORT"
autoload -U compinit promptinit
compinit
promptinit; prompt gentoo
zstyle ':completion::complete:*' use-cache 1

60
config/i3status/config Normal file
View File

@ -0,0 +1,60 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
}
order += "ipv6"
order += "disk /"
order += "run_watch DHCP"
order += "run_watch VPN"
order += "ethernet eth0"
order += "load"
order += "cpu_temperature 0"
order += "tztime local"
order += "tztime utc"
ethernet eth0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%m-%d %H:%M"
}
tztime utc {
format = "UTC: %m-%d %H:%M"
timezone = "Etc/UTC"
}
load {
format = "%1min"
}
cpu_temperature 0 {
format = "T: %degrees °C"
path = "/sys/devices/platform/coretemp.0/temp2_input"
}
disk "/" {
format = "%avail"
}

33
cyno.zsh-theme Normal file
View File

@ -0,0 +1,33 @@
# Personalized!
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
CYNO_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
# Grab the current machine name: muscato
CYNO_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
# Grab the current filepath, use shortcuts: ~/Desktop
# Append the current git branch, if in a git repository: ~aw@master
CYNO_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}\$(parse_git_dirty)"
# Grab the current username: dallas
CYNO_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
# Use a % for normal users and a # for privelaged (root) users.
CYNO_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
# For the git prompt, use a white @ and blue text for the branch name
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
# Close it all off by resetting the color and styles.
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
# Do nothing if the branch is clean (no changes).
ZSH_THEME_GIT_PROMPT_CLEAN=""
# Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
# Add if you are connecting over a ssh connection.
function ssh_connection() {
if [[ -n $SSH_CONNECTION ]]; then
echo "%{$fg_bold[red]%}[ssh] "
fi
}
# Put it all together!
PROMPT="$(ssh_connection)$CYNO_CURRENT_TIME_$CYNO_CURRENT_MACH_$CYNO_CURRENT_LOCA_ $CYNO_CURRENT_USER_$CYNO_PROMPT_CHAR_ "

8
packages/README.md Normal file
View File

@ -0,0 +1,8 @@
## Packages
##### are items which must be:
- .sym
- Symlinked to `~/.<item>`
- folder
- contains certain files for different programs

View File

@ -0,0 +1,36 @@
"*":
"exception-reporting":
userId: "a3820364-eb1c-681b-cd19-859acd548fec"
welcome:
showOnStartup: false
metrics:
userId: "74136f1fe4b0335530c974b5b023d143f913e8ad"
editor:
invisibles: {}
"vim-mode":
startInInsertMode: true
core:
disabledPackages: [
"linter-flake8"
]
"python-jedi": {}
"linter-pylama": {}
"autocomplete-jedi":
includeCompletionsFromAllBuffers: true
"atom-beautify":
_analyticsUserId: "972ecc46-5e2b-4b45-96c3-94c23ccbac26"
"linter-flake8":
executableDir: "/usr/local/bin/"
pep8:
PEP8Path: "/usr/local/bin/pep8"
ignoreErrors: [
"E501"
]
"linter-python-pep8":
pep8DirToExecutable: "/usr/local/bin/"
ignoreErrorCodes: "E501"
linter:
subtleLinterErrors: [
"shellcheck"
]
"linter-shellcheck": {}

View File

@ -0,0 +1,101 @@
Built-in Atom packages (85)
├── archive-view@0.55.0
├── atom-dark-syntax@0.26.0
├── atom-dark-ui@0.49.0
├── atom-light-syntax@0.26.0
├── atom-light-ui@0.41.0
├── autocomplete@0.44.0
├── autoflow@0.22.0
├── autosave@0.20.0
├── background-tips@0.24.0
├── base16-tomorrow-dark-theme@0.25.0
├── base16-tomorrow-light-theme@0.8.0
├── bookmarks@0.35.0
├── bracket-matcher@0.73.0
├── command-palette@0.35.0
├── deprecation-cop@0.40.0
├── dev-live-reload@0.45.0
├── encoding-selector@0.19.0
├── exception-reporting@0.24.0
├── feedback@0.38.0
├── find-and-replace@0.160.0
├── fuzzy-finder@0.81.0
├── git-diff@0.54.0
├── go-to-line@0.30.0
├── grammar-selector@0.46.0
├── image-view@0.54.0
├── incompatible-packages@0.24.0
├── keybinding-resolver@0.31.0
├── language-c@0.44.0
├── language-clojure@0.14.0
├── language-coffee-script@0.39.0
├── language-csharp@0.5.0
├── language-css@0.28.0
├── language-gfm@0.69.0
├── language-git@0.10.0
├── language-go@0.25.0
├── language-html@0.32.0
├── language-hyperlink@0.12.2
├── language-java@0.14.0
├── language-javascript@0.73.0
├── language-json@0.14.0
├── language-less@0.26.0
├── language-make@0.14.0
├── language-mustache@0.11.0
├── language-objective-c@0.15.0
├── language-perl@0.22.0
├── language-php@0.22.0
├── language-property-list@0.8.0
├── language-python@0.34.0
├── language-ruby@0.52.0
├── language-ruby-on-rails@0.21.0
├── language-sass@0.36.0
├── language-shellscript@0.13.0
├── language-source@0.9.0
├── language-sql@0.15.0
├── language-text@0.6.0
├── language-todo@0.18.0
├── language-toml@0.15.0
├── language-xml@0.28.0
├── language-yaml@0.22.0
├── link@0.30.0
├── markdown-preview@0.148.0
├── metrics@0.45.0
├── notifications@0.40.0
├── one-dark-syntax@0.3.0
├── one-dark-ui@0.6.3
├── one-light-syntax@0.4.0
├── one-light-ui@0.5.3
├── open-on-github@0.36.0
├── package-generator@0.38.0
├── release-notes@0.52.0
├── settings-view@0.195.0
├── snippets@0.88.0
├── solarized-dark-syntax@0.32.0
├── solarized-light-syntax@0.19.0
├── spell-check@0.55.0
├── status-bar@0.69.0
├── styleguide@0.44.0
├── symbols-view@0.94.0
├── tabs@0.67.0
├── timecop@0.31.0
├── tree-view@0.170.0
├── update-package-dependencies@0.9.0
├── welcome@0.26.0
├── whitespace@0.29.0
└── wrap-guide@0.32.0
/home/timc/.atom/packages (12)
├── Zen@0.14.0
├── atom-beautify@0.27.2
├── autocomplete-jedi@1.2.0
├── linter@0.12.4
├── linter-flake8@1.4.0
├── linter-pylama@0.0.18
├── linter-python-pep8@0.2.0
├── linter-shellcheck@0.0.7
├── pep8@0.2.0
├── script@2.23.0
├── sort-lines@0.11.0
└── vim-mode@0.48.0

156
packages/i3.sym/config Normal file
View File

@ -0,0 +1,156 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
#set $mod Mod1 #Alt
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+p exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}
# For "pop up windows"
for_window [window_role="pop-up|task_dialog"] floating enable
for_window [class="xfce4-notifyd|Xfce4-notifyd"] floating enable
for_window [class="xfce4-notifyd|Xfce4-notifyd"] move absolute position 1600 0

View File

@ -0,0 +1,31 @@
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
GNOME="-kde X qt4 dbus gtk gnome xvmc xinerama gnome-keyring"
SYSTEMS="symlink ftp mmx mmxext sse sse2 sse3 ssse3 samba python udev threads xine"
CRYPT="crypt"
IMAGE="png gif jpeg pdf"
VID="mp4 x264 xvid id3tag libnotify taglib matroska dts dvd"
AUDIO="flac ogg twolame vorbis acc alsa"
RND="apm acpi atm lm_sensors "
NETWORK="sockets socks5 abyss"
TEMPVARS="-colord savedconfig -graphicsmagick -qt3support -truetype -exif"
DEV="nginx php fpm"
USE="${GNOME} ${SYSTEMS} ${CRYPT} ${IMAGE} ${VID} ${AUDIO} ${RND} ${NETWORK} ${TEMPVARS} ${DEV}"
VIDEO_CARDS="nvidia"
MAKEOPTS="-j9"
ACCEPT_KEYWORDS="~amd64"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"

View File

@ -0,0 +1,33 @@
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
GNOME="-kde X qt4 dbus gtk gnome xvmc xinerama gnome-keyring"
SYSTEMS="symlink ftp mmx mmxext sse sse2 sse3 ssse3 samba python udev xine"
CRYPT="crypt"
IMAGE="png gif jpeg pdf"
VID="mp4 x264 xvid id3tag libnotify taglib matroska dts dvd"
AUDIO="flac ogg twolame vorbis acc pulseaudio"
RND="apm acpi atm lm_sensors "
NETWORK="sockets socks5 abyss"
TEMPVARS="-colord savedconfig -graphicsmagick -qt3support -exif"
DEV="nginx php fpm"
CONSOLE="zsh-completion fish-completion vim-syntax"
USE="${GNOME} ${SYSTEMS} ${CRYPT} ${IMAGE} ${VID} ${AUDIO} ${RND} ${NETWORK} ${TEMPVARS} ${DEV} ${CONSOLE} ${VIRTUALISATION}"
VIDEO_CARDS="nvidia"
LINGUAS="en_GB en"
MAKEOPTS="-j7"
# We dont want a testing environment
#ACCEPT_KEYWORDS="~amd64"
# Layman
source /var/lib/layman/make.conf

69
vimrc.sym Normal file
View File

@ -0,0 +1,69 @@
set nocompatible
filetype off
" Vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Indentation related
set tabstop=4 " How many spaces for a tab
set expandtab " Expand tab to spaces
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
" View related
set cursorline " Highlight cursor line
set showmatch " Match brackets
syntax on
" Search related
set incsearch " Incremental search
set hlsearch " Highlight search
set ignorecase
set smartcase " Ignore ignorecase when uppercase characters are present
" Navigation related
set scrolloff=3 " Minimum number of lines to show below/above the cursor
" Shortcuts
set pastetoggle=<F2>
" Persistent undo
if isdirectory($HOME . '/.vim/undo') == 0
:silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
endif
set undodir-=.
set undodir+=~/.vim/undo//
set undofile
set undolevels=1000
set undoreload=1000
" Set Backup
if isdirectory($HOME . '/.vim/backup') == 0
:silent !mkdir -p ~/.vim/backup >/dev/null 2>&1
endif
set backupdir-=.
set backupdir+=.
set backupdir-=~/
set backupdir^=~/.vim/backup//
set backup
" Set Swapfile
if isdirectory($HOME . '/.vim/swap') == 0
:silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
endif
set directory-=.
set directory^=~/.vim/swap//
set directory+=.
" viminfo stores the the state of your previous editing session
set viminfo+=n~/.vim/viminfo
" Plugins
Bundle 'gmarik/vundle'
Bundle 'davidhalter/jedi-vim'
"Bundle 'pathogen.vim'
filetype plugin indent on

85
xinitrc.sym Normal file
View File

@ -0,0 +1,85 @@
#!/bin/sh
#eval "$(gpg-agent --daemon)"
#urxvtd -q -o -f && urxvtc &
#amixer -q set Headphone mute &
#feh --bg-scale docs/multimedia/images/wallpapers/006.jpg &
display -flop -backdrop -window root /home/hd215/Pictures/5WNZg.jpg
#display -window root /home/hd215/Pictures/tYmM8.jpg
#xsetroot -solid black
#sleep 3 && firefox &
wifi(){
STATUS="X`/sbin/iwgetid`"
if test "$STATUS" != "X" ; then
ESSID="`/sbin/iwgetid |awk -F ":" '{print $2}'|sed -e 's/"//g'`"
LINK="`awk '/ra0:/ {print $3}' /proc/net/wireless |sed -e 's/\.//g'`"
echo " $ESSID:$LINK"
fi
}
batt(){
FULL=`cat /sys/class/power_supply/BAT0/charge_full`
PRESENT=`cat /sys/class/power_supply/BAT0/present`
CHARGE=`cat /sys/class/power_supply/BAT0/charge_now`
STATUS=`cat /sys/class/power_supply/BAT0/status`
if test "$PRESENT" != "0" ; then
CHARGE=$((${CHARGE}*100/${FULL}))
case $STATUS in
Full)
SIGN="=";;
Charging)
SIGN="+";;
Discharging)
SIGN="-";;
esac
if test "${CHARGE}" -lt "15" & "${SIGN}" = "-" ; then
echo " LOW POWER ${CHARGE}${SIGN}"
else
echo " ${CHARGE}${SIGN}"
fi
else
echo " AC"
fi
}
volume(){
STATUS="`amixer get Master |awk '/Mono:/ {print $6}'`"
if test "$STATUS" != "[on]" ; then
echo " Mute"
else
echo " `/usr/bin/amixer get Master |awk '/Mono:/ {print $4}' | sed -e 's/\[//g'|sed -e 's/%\]//g'`v"
fi
}
cmusstats(){
if test "X`pgrep cmus`" != "X" ; then
TIME="`cmus-remote -Q |awk '/duration/ {print $2}'`"
CURR="`cmus-remote -Q |awk '/position/ {print $2}'`"
ARTIST="`cmus-remote -Q |sed -ne '/artist/s/tag artist //pg'`"
TITLE="`cmus-remote -Q |sed -ne '/title/s/tag title //pg'`"
echo "$TITLE ($ARTIST) $CURR/$TIME"
fi
}
while true; do
xsetroot -name "`cmusstats``wifi``volume``batt` `date '+%a %Y%m%d %H:%M'`"
sleep 1
done &
#export XDG_MENU_PREFIX=gnome-
#exec ck-launch-session gnome-session
#exec ck-launch-session dwm
#exec gnome-session
#exec dwm
exec ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm"
#while true; do
# Log stderror to a file
# ck-launch-session bash -c "dbus-launch & pulseaudio --start & dwm 2> ~/.dwm.log"
#dwm 2> ~/.dwm.log
# no error logging
#dwm >/dev/null 2> &1
#done

55
zshrc.sym Normal file
View File

@ -0,0 +1,55 @@
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
GAM=$HOME/Documents/Repos/GAM
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="cyno"
SAVEHIST=1000000
# Google Apps
alias gam="python $GAM/gam.py"
eval "$(hub alias -s)"
umask 022
# Uncomment following line if you want to disable autosetting terminal title. (Useful for screen!)
#DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(sprunge apt bower cap common-aliases urltools wd Pass sudo python pip npm git-extras encode64 zsh-completions)
setopt extendedglob
setopt autocd
setopt hist_ignore_all_dups
#setopt correctall
source $ZSH/oh-my-zsh.sh
# Customize PATH
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/bin
# RVM
[ -d /usr/local/rvm/bin ] && PATH=$PATH:/usr/local/rvm/bin
# Games
[ -d /usr/games/bin ] && PATH=$PATH:/usr/games:/usr/games/bin
# Local Bin
[ -d $HOME/bin ]; PATH=$PATH:~/bin
# Export for the Environment
export PATH=$PATH
zstyle ':completion::complete:*' use-cache 1
alias lefty='xmodmap -e "pointer = 3 2 1"'
alias righty='xmodmap -e "pointer = 1 2 3"'
alias leftscreen='xrandr --output DVI-I-2 --auto --left-of DVI-I-1'
alias sound="pavucontrol"
autoload -U compinit promptinit
compinit