Skip to content

Instantly share code, notes, and snippets.

@jmingov
Forked from cirrusUK/.Xresources
Last active August 29, 2015 14:17
Show Gist options
  • Save jmingov/7ecfb12088d6f425b06e to your computer and use it in GitHub Desktop.
Save jmingov/7ecfb12088d6f425b06e to your computer and use it in GitHub Desktop.
[options]
resize_grip = false
geometry = 1920x1040
scroll_on_output = true
scroll_on_keystroke = true
audible_bell = true
visible_bell = true
mouse_autohide = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
# ~ ! [{(
font = Envy Code R 10
#font = lime.se 9px
scrollback_lines = 1024
icon_name = terminal
transparency = 1.4
pseudo_transparency = false
cursor_blink = on
cursor_shape = block
padding = 2
border = #333333
border_width = 0.5
roundness = 2.0
# $BROWSER is used by default
browser = firefox
[colors]
foreground = #cccccc
background = #1e1e1e
#foreground = #54ffbc
#background = #333333
#background = #002B36
#color0 = #2E1F1F
#color8 = #422D2D
#color1 = #F37D33
#color9 = #BE0E50
#color2 = #1DCC9F
#color10 = #1FD9A9
#color3 = #27C282
#color11 = #2CDB93
#color4 = #7182A8
#color12 = #8194BF
#color5 = #A673A6
#color13 = #7F5AA1
#color6 = #6DA3A1
#color14 = #669997
#color7 = #B7BBBD
#color15 = #D9D9D9
color0 = #4c4c4c
color8 = #999999
color1 = #999999
color9 = #b2b2b2
color2 = #999999
color10 = #b2b2b2
color3 = #cb4b16
color11 = #999999
#color11 = #cd8faf
color4 = #cb4b16
color12 = #7f7f7f
color5 = #cb4b16
color13 = #7f7f7f
color6 = #f29d55
color14 = #999999
color7 = #b2b2b2
color15 =#cb4b16
# Copyright 2012 Cirrus Minor. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY Cirrus Minor ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Cirrus Minor OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# All the following colours are supported: black, red, green, yellow, blue, magenta, cyan, white, default, bright, bold, dim,
# The views and conclusions contained in the software and documentation are those of the
# authors and should not be interpreted as representing official policies, either expressed
# or implied, by Cirrus Minor.
################
## .tmux.conf ##
#unbind C-b
set -g prefix C-a
# generalized startup stuff
set -g default-command zsh
set -g default-terminal screen-256color
#set -g automatic-rename on
set -g set-remain-on-exit off
set -g base-index 1
#set -g default-command "${SHELL}"
# mouse
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
#set -ga terminal-override ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
set -g mode-mouse on
# Statusbar properties
set -g display-time 5000
set -g status-bg default
set -g status-fg black
#set -g window-status-current-format "#[bg=blue,fg=black] Session #S ❮|:#W|#h:#T|❯ "
# pane divider color; non active pane
set -g pane-border-fg green
set -g pane-border-bg default
# pane divider color; active pane
# helps when you have more than two panes.
set -g pane-active-border-fg blue
set -g pane-active-border-bg default
# window notifications; display activity on other window
set -g monitor-activity on
set -g visual-activity on
# statusbar colors
set -g status-fg white
set -g status-bg default
set -g status-attr default
# window title colors; non active
set -g window-status-fg blue
set -g window-status-bg default
set -g window-status-attr dim
# window title colors; active
set -g window-status-current-fg black
set -g window-status-current-bg red
#set -g window-status-current-attr bright
# Titles
set -g set-titles on
set -g set-titles-string "#T"
set -g status-justify centre
#tmux messages
set -g message-bg default
set -g message-fg yellow
#statusbar external scripts
#set -g status on
#set -g status-interval 2
set -g status-utf8 on
set -g status-left-length 200
set -g status-right-length 180
#set -g status-left '#(rainbarf)'
set -g status-left " #(~/tmux-powerline/powerline.sh left)"
#set-option -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
#set -g status-right "#(~/tmux-powerline/powerline.sh right)"
set -g status-right "#[fg=colour255]#(cat /home/cirrus/.cache/i3blocks/notification | grep BODY | cut -c 6-) #[bg=36,fg=colour166]◀ %H:%M #[default] "
###shell script to open tmux with predefined pane layout & TUI apps therein
#!/bin/bash
tmux new-session -d -n 'irc' 'weechat-curses'
tmux split-window -h 'newsbeuter'
tmux selectp -t 1
tmux split-window -v 'cmus'
tmux selectp -t 2
tmux split-window -v 'ayadn global --scroll'
tmux selectp -t 0
tmux split-window -v -p 25 'earthquake'
tmux selectp -t 2
tmux split-window -v -p 25 '~/stag3.sh'
tmux split-window -h '~/stag2.sh'
tmux new-window -n 'SSH'
tmux split-window -h
tmux selectp -t 1
tmux split-window -v 'speedometer -tx enp4s0'
tmux selectp -t 2
tmux split-window -v 'speedometer -rx enp4s0'
tmux new-window -n 'Media' 'mpsyt'
tmux split-window -h 'youtube-viewer -C -S'
tmux selectp -t 1
tmux split-window -v '~/build/torrentflix/bin/torrentflix'
tmux selectp -t 2
tmux split-window -v
tmux new-window -n 'Code' 'saidar -c'
tmux split-window -h
tmux selectp -t 0
tmux split-window -v 'mc'
tmux selectp -t 2
tmux split-window -v
tmux selectp -t 1
tmux split-window -v
tmux selectw -t 1
tmux -2 attach-session -d
[[ $- = *i* ]] || return
#toilet -f mono12 --gay -F border --w 100 Archlinux X86_64
#alsi -c1=red -c2=blue -t red
toilet -f term -F border --gay Archlinux X86_64
#alsi -c1=red -c2=blue -t red
#fortune | ponysay
#command cowsay $(fortune all)
#cat /etc/motd
cat ~/issue
echo "\e[0;41m \e[0;47m \e[0;44m "
echo "Hello \e[1;37m\e[31m$USER.\e[0;51m"
echo "Today is \e[31m$(date)\e[0;51m"
#echo "Current working directory :\e[1;37m\e[31m$(pwd)\e[0;51m"
echo -e "\033[1mCurrent working directory. \033[35m$(pwd)\e[0;51m"
echo "\e[0;41m \e[0;47m \e[0;44m "
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# Powerline & oh-my-zsh config.
ZSH=~/.oh-my-zsh
ZSH_THEME="powerline"
source $ZSH/oh-my-zsh.sh
POWERLINE_FULL_CURRENT_PATH="true"
POWERLINE_DETECT_SSH="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(git ant colorize)
DISABLE_AUTO_UPDATE="true"
alias grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
LS_COLORS='di=0;35' ; export LS_COLORS
## WIKIPEDIA SEARCH FUNCTION ##
wikipediaSearch() {
echo -n -e "\n============================================\n\tWelcome to WikiPedia Search"; echo ""; i=1 ; for line in $(lynx --dump "http://en.wikipedia.org/w/index.php?title=Special%3ASearch&profile=default&search=$1&fulltext=Search" | grep http://en.wikipedia.org/wiki | cut -c7-); do echo $i $line; lines[$i]=$line ; i=$(($i+1)); done ; echo -n -e "\n============================================\n\tPlease select the link to open - "; read answer; w3m ${lines[$answer]}
}
## ARCHWIKI SEARCH FUNCTION ##
archSearch() {
echo -n -e "\n============================================\n\tWelcome to Arch Wiki Search"; echo ""; i=1 ; for line in $(lynx --dump "https://wiki.archlinux.org/index.php?title=Special%3ASearch&profile=default&search=$1&fulltext=Search" | grep https://wiki.archlinux.org/ | cut -c7-); do echo $i $line; lines[$i]=$line ; i=$(($i+1)); done ; echo -n -e "\n============================================\n\tPlease select the link to open - "; read answer; w3m ${lines[$answer]}
}
## EXTRACT FUNCTION ##
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
# Automatically do an ls after each cd
cd() {
if [ -n "$1" ]; then
builtin cd "$@" && ls --group-directories-first
else
builtin cd ~ && ls --group-directories-first
fi
}
last_command='%(?.>>.<<)'
## EXTRACT FUNCTION ##
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
## DICTIONARY FUNCTIONS ##
dwordnet () { curl dict://dict.org/d:${1}:wn; }
dacron () { curl dict://dict.org/d:${1}:vera; }
djargon () { curl dict://dict.org/d:${1}:jargon; }
dfoldoc () { curl dict://dict.org/d:${1}:foldoc; }
dthesaurus () { curl dict://dict.org/d:${1}:moby-thes; }
cmdfu() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" \
| sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" ;}
say() {
mplayer -user-agent Mozilla \
"http://translate.google.com/translate_tts?ie=UTF-8&tl="$1"&q=$(echo "$@" \
| cut -d ' ' -f2- | sed 's/ /\+/g')" > /dev/null 2>&1 ;}
down4me() { curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';}
score() { watch -n10 --no-title "w3m http://www.livescore.com/ |awk '/live [0-9H]+[^ ]/,/red cards/'" ;}
#oldprompt
#PROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%*%{\e[0;31m%}][%{\e[0;32m%}%n@%m%{\e[0;31m%}]%{\e[1;22m%} ▄ ▃ ▂ ▁ \e[0;51m ▷ '
#RPROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%~%{\e[0;33m%}]%{\e[0m%}'
alias \
cp='cp -av' \
df='df -Th --total' \
g='git' \
gcm='git commit -m' \
gco='git checkout' \
gd='git diff' \
gdh='git diff HEAD' \
gg='git pull' \
gp='git push' \
gst='git status --short --untracked-files' \
la='ls -l' \
#ls='ls -AFNh --tabsize=0 --color=auto --show-control-chars --group-directories-first' \
svim='sudo vim' \
ta='tmux attach' \
tl='tmux ls'
zstyle ':completion:*' menu select
setopt HIST_IGNORE_DUPS
export \
ABSROOT="$HOME/build/abs" \
BROWSER="${${DISPLAY+firefox}:-w3m}" \
EDITOR="nano" \
#GREP_COLOR="4;1;31" \
HISTFILE=$HOME/.logs/zhistory \
HISTSIZE=10000 SAVEHIST=10000 \
PAGER="less" \
PERL5LIB="$HOME/.perl5/lib/perl5/x86_64-linux-thread-multi:$HOME/.perl5/lib/perl5:$PERL5LIB" \
PERL_LOCAL_LIB_ROOT="$HOME/.perl5" \
PERL_MB_OPT="--install_base $HOME/.perl5" \
PERL_MM_OPT="INSTALL_BASE=$HOME/.perl5" \
SUDO_PROMPT="Password: " \
VISUAL="nano"
setopt completealiases
TZ="Europe/London"
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
# alias
alias root="sudo -i"
alias sudo="sudo -i"
alias mount='mount |column -t'
alias rm='rm -I --preserve-root'
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
alias time='watch -t -n1 "date +%T | figlet -f big -c"'
alias pacsyy='echo -n "Pacman is Updating Mirrorlist " | pv -qL 20 && sudo pacman -Syy'
alias pacsu='echo -n "Pacman is Upgrading all installed packages " | pv -qL 20 && sudo pacman -Su'
alias pacinfo="echo -n "Pacman is showing pkg info " | pv -qL 20 && sudo pacman -Si" #show information about a package
alias pacsyu="pacman -Syu" #update all packages to latest version
alias pacs="sudo pacman -S" #install package/s
alias paclist="sudo pacman -Ql" #list all files installed by pkg
alias paclistloc="pacman -Qqm" #list all locally installed pkgs
alias pacr="sudo pacman -R" #uninstall one or more package/s
alias pacrns="sudo pacman -Rns" #uninstall package and deps
alias pacorph="sudo pacman -Qdt" #list all orphaned packages
alias pacown="echo -n "Determine which package owns a file " | pv -qL 20 && pacman -Qo" #determine which package owns a file
alias pacss="sudo pacman -Ss" #search for a package (not AUR)
alias pacachec="pacman -Sc" #delete pacman cache
alias pkglist="comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt"
alias starwars="telnet towel.blinkenlights.nl" #starwars ascii
#alias history20="cut -f1 -d" " .bash_history | sort | uniq -c | sort -nr | head -n 20 | ccze -A"
alias coweru="cower -u | ccze -A" #Check for updates in the AUR.
alias cowers="cower -s " #search AUR
alias coweri="cower -i " #info
alias cowerd="cower -d" #cower download <pkg>
alias makepkgi="makepkg -ci" #build,install
alias makepkgsci="makepkg -sci | ccze -A" #build,getdeps,clean,install
alias c-c="sudo cacheclean -v 2" #keep last 2 versions of packages
alias space="~/space.sh"
alias cap="~/cap" #sh script for scrot uploads
alias capsel="~/capsel" #sh script scrot -s uploads
alias shots="~/shots" #upload scrot to server
alias shotsel="~/shotsel" #upload scrot -s to server
alias venv='cd ~/venv/bin && source ~/venv/bin/activate'
alias reboot='espeak "system Rebooting" && sudo shutdown -r now && xcowsay BRB' #reboot
alias poweroff='espeak "system is going down" && sudo shutdown -h now && xcowsay Goodbye' #halt
alias shutdown='echo -n "system is shutting down, Goodbye Commander " | pv -qL 10 && sudo shutdown -h now' #halt
alias supy="supybot /home/len/build/aur/supybot/cirrusbot.conf" #launch supybot
alias wee='echo -n "Launching Weechat IRC Command Line Client" | pv -qL 20 && weechat-curses' #launch weechat
alias empty='echo -n Taking out teh trash | pv -qL 10 | ccze -A && rm -rf /home/cirrus/.local/share/Trash/files'
#alias mpds="mpdscribble" #launch mpd lastfm scrobbler
alias news='echo -n " Launching Newsbeuter RSS Reader For Command Line " | pv -qL 20 && newsbeuter' #launch rss feeder
alias digit="echo dig +short txt archlinux.wp.dg.cx | ccze -A"
alias twit2="~/scripts/rainbow.sh" #CLI twitter client
alias adn="ayadn global --scroll"
alias adnsay="ayadn post"
alias adntv="ayadn -TV -b"
alias adnnp="ayadn -np -l -n"
alias adnrt="ayadn -O"
aliasadnstar="ayadnST"
alias adnme="ayadn -m me"
#alias twit='echo -n " Launching Earthquake Command Line Twitter Client " | pv -qL 20 && earthquake' #twitter stream cli
alias twit="~/scripts/earthq.sh"
alias unetbootin='echo -n " Launching Unetbootin " | pv -qL 10 && sudo unetbootin' #launch unetbootin
alias gparted="sudo gparted" #launch gparted
alias netlisten='lsof -i -P | grep LISTEN | ccze -A' #listening ports
alias lsl='ls -lh | ccze -A' #list files, dirs
alias nstat="netstat -p TCP -eWc | ccze -A" #netstat
alias red1="echo -n ArchLinux SubReddit For Command Line | pv -qL 10 && reddit_top -s archlinux"
alias red="echo -n Reddit For Command Line | pv -qL 10 && reddit_top"
alias usage='du -ch | grep total'
alias transon="sudo systemctl start transmission"
alias transoff="sudo systemctl stop transmission"
alias nstato="netstat -tuael --numeric-hosts --numeric-ports | ccze -A" #netstat
alias dmesg="dmesg | tail | ccze -A" #messages
alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ " #shellalert in 10 mins
alias ytdl="youtube-viewer -d" #youtube-viewer download -[URL]
alias ytv="~/scripts/ytv.sh"
alias subs="~/scripts/subs.sh"
alias tele="~/scripts/tele.sh" #Live UK TV
alias sounds="~/scripts/pms.py"
#alias mpsyt="~/scripts/mpsyt"
alias wget='wget -c'
alias h='history | ccze -A'
alias grep='grep --color=auto'
#alias ls='ls --color=auto'
alias pacmanlog='tail -n 40 /var/log/pacman.log | ccze -A' #view 40 entries in pacman log
alias size='sudo du -hsx * | sort -rh | head -10 | ccze -A' #list 10 dir/files by size
alias sizevar='sudo du -a /var | sort -n -r | head -n 10 | ccze -A' #list 10 dir by size
alias sizehome="sudo du -a ~/ | sort -n -r | head -n 10 | ccze -A" #list 10 dir by size
alias uuid="echo -n Listing UUID | pv -qL 10 && ls /dev/disk/by-uuid/ -alh | ccze -A"
alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1 | ccze -A'
alias du="du -h | ccze -A"
alias age="sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'"
alias cdd="cd .." #up 1 dir
alias toprun="ps axo %cpu,%mem,comm |sort -unr| head -n 9 | ccze -A" #top processes
alias hist="history -n 20 | ccze -A" #shell history
alias psusage="ps aux --sort=-%cpu | grep -m 11 -v `whoami` | ccze -A" #cpu load
alias lsbig="echo -n listing files & directories by size | pv -qL 10 && ls -lSrh | ccze -A" #sort files dirs by size
#alias mountsab="~/scripts/mountsab" #mount sabayon
#alias umountsab="~/scripts/umountsab" #umount sabayon
alias mountob="~/scripts/mountob"
alias umountob="~/scripts/umountob"
alias mount64="~/scripts/mount64"
alias umount64="~/scripts/umount64"
alias mounts4="~/scripts/mounts4.sh"
alias umounts4="~/scripts/umounts4.sh"
#alias mpv="mpv --geometry=455x270"
alias google="sr google"
alias aurpkg="sr aur"
alias archpkg="sr archpkg"
alias archwiki="sr archwiki"
alias drives="echo -n Listing connected drives | pv -qL 10 && lsblk -f | ccze -A" #list hdds, uuid's
alias sourcezsh="source ~/.zshrc" #source .zshrc
alias sourcebash="source ~/.bashrc" #source .bashrc
alias listmod="ls -ltr | ccze -A" #list modified files
alias listf="ls -F | ccze -A" #list alphabeticaly
alias topu="top -u cirrus | ccze -A" #top proc for user
alias pingoogle="echo -n Pinging google.com | pv -qL 10 && ping -c 5 google.com | ccze -A" #ping google
alias pingnorton="echo -n Pinging norton.com | pv -qL 10 && ping -c 5 198.153.192.1 | ccze -A"
alias pingnorton1="echo -n Pinging norton.com | pv -qL 10 && ping -c 5 198.153.194.1 | ccze -A"
alias sshon="~/scripts/sshon.sh"
alias sshoff="~/scripts/sshoff.sh"
alias kernelmsg="sudo journalctl -f _TRANSPORT=kernel | ccze -A" #kernel messages
alias ports='netstat -tulanp | ccze -A' #netstat
alias bootmsg="echo -n Boot Messages | pv -qL 10 && sudo journalctl -b | ccze -A" #boot messages
#alias prebootmsg"="sudo journalctl --since=today | tac | sed -n '/-- Reboot --/{n;:r;/-- Reboot --/q;p;n;b r}' | tac | ccze -A"
alias inxif="inxi -F | ccze -A"
alias score="watch -n10 --no-title "w3m http://www.livescore.com/ |egrep 'live [0-9H]+[^ ]'" && echo foo"
alias systemdmsg="sudo journalctl /usr/lib/systemd/systemd | ccze -A"
alias blame="systemd-analyze blame | ccze -A"
alias recterm="echo -n Recording Terminal | pv -qL 10 && asciinema rec"
alias boot="echo -n Boot Time | pv -qL 10 && systemd-analyze | ccze -A"
alias units="echo -n Listing Units | pv -qL 10 && systemctl list-units | ccze -A"
alias errors="echo -n Journal Errors | pv -qL 10 && journalctl -b -p err | ccze -A"
alias irssigs="irssi -c irc.geekshed.net/" #irc server
alias cdh="cd ~" #cd to home folder
alias cdaur="cd ~/build/aur" #cd to aur folder
alias qtconfig="/usr/lib/qt4/bin/qtconfig" #qtconfig
#alias meminfo='free -m -l -t | ccze -A' #freeRAM
alias meminfo='echo -n "RAM Information " | pv -qL 10 &&free -m -l -t | ccze -A' #freeRAM
#alias psmem='ps auxf | sort -nr -k 4 | ccze -A' #top process eating memory
alias psmem='echo -n "Top Processes accesing RAM " | pv -qL 10 && ps auxf | sort -nr -k 4 | ccze -A'
alias cpuinfo='lscpu | ccze -A' #CPU info
alias pscpu='echo -n "Top Processes accesing CPU " | pv -qL 10 && ps auxf | sort -nr -k 3 | ccze -A'
alias gpumeminfo='echo -n GPU RAM Information | pv -qL 10 && grep -i --color memory /var/log/Xorg.0.log | ccze -A'
alias lsaur='echo -n Listing Installed AUR packages| pv -qL 20 && pacman -Qqm | ccze -A'
alias finch='~/scripts/finch.sh'
alias freenode="termite -e weechat-curses irc://Cirrus_Minor@irc.FreenodeSSL.net/#archlinux-offtopic,#archlinux,#darkfox,#r/linux"
alias killcli="echo -n Stopping CLI Processes | pv -qL 10 && sudo killall finch glances newsbeuter earthquake speedometer ocp pms pmsyt mpsyt weechat-curses ranger youtube-viewer & ~/scripts/killmpd.sh"
alias mpdbotgs="~/scripts/mpdbotgs"
#alias ticker='while true;do n="$(curl -s http://news.yahoo.com/rss/|sed 's/</\n/g'|grep "title>"|sed -e '/^\// d' -e 's/title>/---------- /g' -e '1,3d'|tr '\n' ' ')";for i in $(eval echo {0..${#n}});do echo -ne "\e[s\e[0;0H${n:$i:$COLUMNS}\e[u";sleep .15;done;done &'
alias myos='echo -n "Current Operating System In Use " | pv -qL 20 && cat /etc/*-release | ccze -A'
alias osdon='mpdnotify start && espeak "M P D On Screen Display active"'
alias osdoff='mpdnotify stop && espeak "M P D On Screen Display inactive"'
alias lyrics="~/scripts/mpdlyr.sh"
alias mp3="~/scripts/mpd.sh" #launch mpd,ncmpcpp
alias killmpd="~/scripts/killmpd.sh" #kill mpd sh script
alias tclock="while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &"
alias pony="fortune | ponysay"
alias mpdbot="~/scripts/mpdbot"
alias turtil="echo -n Establishing SSH Connection To server | pv -qL 20 && ssh cirrus@turtil.net -p 2236"
alias rpi="echo -n Establishing SSH Connection To Rpi .. | pv -qL 20 && ssh cirrus@192.168.1.33 -p 2236"
#alias weather='weatherman "Glasgow,United Kingdom" '
alias weather='echo -n "Glasgow UK Weather " | pv -qL 20 && weatherman "Glasgow,United Kingdom" '
#alias weatherx='weatherman -x "Glasgow,United Kingdom" | ccze -A'
alias weatherfc='echo -n "Glasgow UK Weather Weekly Forecast " | pv -qL 20 && weatherman -x " Glasgow,United Kingdom" | ccze -A'
#alias grep="grep --color=auto"
#alias mympd="mplayer http://localhost:8000" #mpdstream
alias pimpd='echo -n "Rpi MPD Server " | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias findit="sudo find / -name" #find files
alias upd60="find . -mmin -60" #updated currentdir 60mins
alias rtupd60=" find / -mtime -1" #updated / 60mins
alias myip="~/ip.sh"
alias ocpcur="ocp-curses"
#alias myip='echo -n "My External IP " | pv -qL 20 && curl ifconfig.me/host | ccze -A' #see external IP,remote host
alias telehack="telnet telehack.com"
#alias jukebox="ncmpcpp -h turtil.net -p 6610"
alias jukebox='echo -n "ncmpcpp via Rpi ArchlinuxArm server" | pv -qL 20 && ncmpcpp -h 192.168.1.33'
alias mpdsrv='echo -n "MPD Stream via Rpi ArchlinuxArm server" | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias tmuxtxt="cat ./tmux"
alias tmuxnew="tmux new -s cirrus"
alias sshkeygen='echo -n "Generating SSH Key" | pv -qL 20 && ssh-keygen -t rsa -C nailzuk@gmail.com'
alias serve="echo -n localhost python server on port 8080 | pv -qL 20 & python -m http.server 8080"
alias i3guide="w3m http://i3wm.org/docs/userguide.html"
alias pbay="w3m http://proxybay.de/browse/200"
alias pack="~/scripts/pac.sh"
alias zshconfig="leafpad ~/.zshrc"
alias tmuxconfig="leafpad ~/.tmux.conf"
alias tmuxnew="tmux new -s cirrus"
alias tmuxat="tmux a -t cirrus"
alias tmuxdt="tmux detach"
alias tmuxnw='tmux new-window'
alias tmuxsw="tmux select-window -t"
alias tmuxpi="tmux a -t 0"
alias sw1="tmux select-window -t 1"
alias sw2="tmux select-window -t 2"
alias sw3="tmux select-window -t 3"
alias sw4="tmux select-window -t 4"
alias sw5="tmux select-window -t 5"
alias tm="~/tmux.sh"
alias wikip="wikipediaSearch"
alias awiki="archSearch"
alias pingpi="ping 192.168.1.33 | ccze -A"
alias rss="newsbeuter"
alias exit="clear; exit"
alias im="finch"
alias pong="ping -c 3 www.google.com | ccze -A"
alias exit="clear; exit"
alias nicklist="cat ~/.irssi/nicklistfifo"
alias fact='wget randomfunfacts.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;"'
alias zshell='ssh cirrus@209.141.38.87 -p 22'
alias iplay="echo -n BBC iPlayer Shell Commands | pv -qL 10 && cat ~/iplayer.txt"
alias iplayer="echo -n Executing BBC iPlayer | pv -qL 10 && ~/iplayer --refresh-exclude="cbeebies,cbbc" --type=tv --refresh"
alias bbcip="~/scripts/bbcip.sh"
alias speedtest="echo -n Test Download & Upload Speeds with option to share results via png file | pv -qL 10 && speedtest-cl --share"
alias archey="toilet -f mono12 --gay --w 100 Arch"
alias speeddown="echo -n Displaying Download Speed Graph| pv -qL 10 && speedometer -rx enp4s0"
alias speedup="echo -n Displaying Upload Speed Graph | pv -qL 10 && speedometer -tx enp4s0"
alias speedrw="echo -n Show R/W speeds | pv -qL 10 && dd bs=1000000 count=100 if=/dev/zero of=testfile & speedometer testfile"
alias dclock="dclock -bg black -fg turquoise -led_off black -geometry 114x49"
alias xeyes="xeyes -bg black -center green -fg blue -geometry 114x49"
alias gempurge="for i in `gem list --no-versions`; do gem uninstall -aIx $i; done"
alias youtube-mp3='youtube-dl --extract-audio --audio-format mp3'
alias cbs="livestreamer -p mpv http://www.filmon.com/tv/cbs-reality low"
alias top="/lib/node_modules/vtop/bin/vtop.js --theme cirrus"
alias oshells='ssh cirrus@thebes.openshells.net -p 22'
alias mmap="node ~/build/blessed-contrib/examples/dashboard.js"
alias uptime="echo '$(uptime | toilet -f term -F border --gay)'"
##video streams
alias bbc1='get_iplayer --stream --type=livetv "BBC One" --player="mplayer -cache 512 -"'
alias bbc2='get_iplayer --stream --type=livetv "BBC Two" --player="mplayer -cache 512 -"'
alias bbc3='get_iplayer --stream --type=livetv "BBC Three" --player="mplayer -cache 512 -"'
alias bbc4='get_iplayer --stream --type=livetv "BBC Four" --player="mplayer -cache 512 -"'
alias bbcnews='get_iplayer --stream --type=livetv "BBC News" --player="mplayer -cache 512 -"'
#alias bbc1="livestreamer -p mplayer http://filmon.com/tv/bbc-one low"
#alias bbc2="livestreamer -p mpv filmon.com/tv/bbc-two low"
alias itv1="livestreamer -p mpv filmon.com/tv/itv1 low"
alias itv2="livestreamer -p mpv filmon.com/tv/itv2 low"
alias itv3="livestreamer -p mpv filmon.com/tv/itv3 low"
alias itv4="livestreamer -p mpv filmon.com/tv/itv4 low"
alias fitba="livestreamer -p mpv filmon.com/tv/filmon-football low"
#alias natgeo="mpv http://202.75.23.35/live/ch39/01.m3u8"
alias cbsdrama="livestreamer -p mpv filmon.com/tv/cbs-drama low"
alias chan4="livestreamer -p mpv filmon.com/tv/channel-4 low"
alias dave="livestreamer -p mpv filmon.com/tv/dave low"
alias quest="livestreamer -p mpv filmon.com/tv/quest low"
alias yesterday="livestreamer -p mpv filmon.com/tv/yesterday low"
alias 5usa="livestreamer -p mpv filmon.com/tv/5usa low"
alias twittv="mpv http://bglive-a.bitgravity.com/twit/live/high"
alias bigbang="livestreamer -p mpv http://veetle.com/v/c80b322200505d39c10411e8409bf190 worst && xcowsay BiG bAnG Th3ory"
alias sport="mplayer rtmp://178.22.217.150/tv/live/5.sdp"
alias sport1="mplayer mms://cht-cdn220-is-2.se.bptvlive.ngcdn.telstra.com/bp_online_tvn_med"
alias eurosport="mplayer http://esioslive2-i.akamaihd.net/hls/live/200728/AL_ESP1_UK_ENG/playlist_2500.m3u8"
alias crime="livestreamer -p mpv http://vaughnlive.tv/crimecentral best"
alias aaliens="livestreamer -p mpv http://vaughnlive.tv/bob_2012 best"
alias lawnorder="livestreamer -p mpv http://vaughnlive.tv/getyourdocsoff best"
alias fam="livestreamer -p mpv http://vaughnlive.tv/111aaacharkfamily best"
alias cops="livestreamer -p mpv http://vaughnlive.tv/111aaacharkcops best"
alias natgeo="livestreamer -p mpv http://vaughnlive.tv/lmshows_ngbbc best"
alias pickers="livestreamer -p mpv http://vaughnlive.tv/111aaacharkpickers best"
alias sharktank="livestreamer -p mpv http://vaughnlive.tv/111aaacharkbizness best"
alias foxsports="mpv http://foxsportshdhls-lh.akamaihd.net/i/fsnewshls_0@136427/index_1096_av-p.m3u8"
alias sports1="mpv rtmp://91.140.238.7/rtmplive/rtpencoder/sportplus.sdp"
alias sports2="mpv http://178.49.132.73/streaming/sport1/tvrec/playlist.m3u8"
alias vh1="mpv http://188.227.86.4:4022/udp/239.77.0.2:1234"
alias docs="livestreamer -p mpv http://vaughnlive.tv/discoveryhouse best"
alias floyd=" http://99.198.112.59:8000"
#alias scores=' watch -n10 --no-title "w3m http://www.livescore.com/ |awk /live [0-9H]+[^ ]/,/red cards/" '
alias tflix="~/build/torrentflix/bin/torrentflix"
##
PATH=$PATH:/home/cirrus/.gem/ruby/2.2.0/bin
#PATH=$PATH:/root/.gem/ruby/2.2.0/bin
###
###
alias issue="cat /etc/issue"
# needs to be at the bottom, or completion will break highlighting.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment