Skip to content

Instantly share code, notes, and snippets.

@zouhair
Forked from cirrusUK/.Xresources
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zouhair/e4e063d0697f035c1488 to your computer and use it in GitHub Desktop.
Save zouhair/e4e063d0697f035c1488 to your computer and use it in GitHub Desktop.
XTerm*termName: xterm-256color
xterm*geometry: 82x20
xterm*faceName: xft::pixelsize=10:antialias=false
xterm*font: -misc-tamsyn-medium-r-normal--10-87-100-100-c-60-*
xterm*dynamicColors: true
xterm*utf8: 2
xterm*eightBitInput: true
xterm*saveLines: 512
xterm*scrollKey: true
xterm*scrollTtyOutput: true
xterm*scrollBar: false
xterm*rightScrollBar: false
xterm*jumpScroll: false
xterm*multiScroll: true
xterm*toolBar: false
*background: *background: rgb:30/30/30
*foreground: #cccccc
dzen2.font: -*-fixed-*-*-*-12-*-*-*-*-*-*-*
dzen2.foreground: #22EE11
dzen2.background: #1e1e1e
URxvt.urlLauncher: firefox
*.colorBD: #CFCFCF
*.colorUL: #A0A0A0
*.colorIT: #686868
! Black
*color0: #1e1e1e
*color8: #b2b2b2
! Red
*color1: #1e1e1e
*color9: #b2b2b2
! Green
*color2: #1e1e1e
*color10: #1a1a1a
! Yellow
*color3: #cb4b16
*color11: #b2b2b2
! Blue
*color4: #cccccc
*color12: #1a1a1a
! Magenta
*color5: #cccccc
*color13: #b2b2b2
! Cyan
*color6: #cccccc
*color14: #cb4b16
! White
*color7: #cccccc
*color15: #b2b2b2
!## teh URxvt stuff
URxvt.font : -*-fixed-*-*-*-12-*-*-*-*-*-*-*
URxvt.iconFile: /usr/share/icons/Clarity/scalable/apps/terminal.svg
URxvt.perl-ext-common: default,tabbedex,clipboard
URxvt.url-launcher: /usr/bin/firefox
URxvt.matcher.button: 1
URxvt.keysym.C-Delete: perl:matcher:last
URxvt.keysym.M-Delete: perl:matcher:list
URxvt.colorUL: #4682B4
urxvt.geometry: 154x115
URxvt.borderless: true
urxvt*scrollBar: false
URxvt.scrollBar_right : False
URxvt.scrollBar_floating : False
URxvt.scrollstyle : plain
URxvt*color12: rgb:5c/5c/ff
!## teh transparency stuff
URxvt.inheritPixmap: true
URxvt.tintColor: white
URxvt.shading: 40
URxvt.background: #1e1e1e
URxvt.foreground: #cccccc
URxvt*highlightColor: #cccccc
URxvt*highlightTextColor: #666666
!## teh dpi stuff
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.autohint: 0
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
!## rofi
rofi.opacity: 85
rofi.width: 1918
rofi.lines: 7
rofi.columns: 4
rofi.font: PragmataPro 10
rofi.fg: #cccccc
rofi.bg: #1e1e1e
rofi.hlfg: #1e1e1e
rofi.hlbg: #cb4b16
rofi.bc: #cb4b16
rofi.bw: 1
rofi.location: 6
rofi.padding: 2
rofi.yoffset: -30
rofi.xoffset: 0
rofi.fixed-num-lines: true
rofi.hmode: false
rofi.terminal: termite
rofi.ssh-set-title: true
rofi.disable-history: false
article-sort-order desc
auto-reload yes
#browser firefox %u
browser w3m
confirm-exit no
max-items 250
notify-program "/usr/bin/notify-send"
reload-threads 3
reload-time 60
show-read-articles no
show-read-feeds no
color listfocus red default blink
color info red default bold
highlight all "linux,Linux" red magenta bold
#download-full-page yes
notify-always yes
#mark-as-read-on-hover yes
always-display-description true
# formatting and colorization ------------------------------------------
articlelist-format "%4i %f %D %?T?|%-17T| ?%t"
highlight feedlist "^ *[0-9]+ *N " color156 default
highlight articlelist "^ *[0-9]+ *N " color156 default
highlight article "^(Feed|Title|Author|Link|Date|Linux):.*" color75 default
highlight article "^Podcast Download URL:.*" color71 default
highlight article "^Links:" white color240 underline
highlight article "\\[[0-9][0-9]*\\]" color72 default bold
highlight article "\\[image [0-9][0-9]*\\]" color72 default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" color72 default bold
highlight article ":.*\\(link\\)$" color74 default
highlight article ":.*\\(image\\)$" color74 default
highlight article ":.*\\(embedded flash\\)$" color74 default
color listnormal color244 color234
color listnormal_unread color244 color234 bold
color listfocus color166 color235
color info color38 color235
color background color244 color234
color article color244 color234
feedlist-format "%-35t %?d?- %-35d&? %> %u"
articlelist-format "%-4i %f %t"
feedlist-title-format "%N %V %> %u feeds with new articles"
articlelist-title-format "%T"
html-renderer "w3m -dump -T text/HTML -cols 72"
highlight article "^(Feed|Title|Author|Link|Date):.*" yellow default bold
notify-format "%d %n %f new articles (%n unread articles, %f unread feeds)"
[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 = #1e1e1e
color8 = #999999
color1 = #999999
color9 = #b2b2b2
color2 = #999999
color10 = #b2b2b2
color3 = #2aa198
#color3 = #cb4b16
color11 = #cccccc
color4 = #cb4b16
color12 = #7f7f7f
color5 = #cb4b16
color13 = #f29d55
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 set-remain-on-exit on
set -g remain-on-exit on
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 colour38
set -g window-status-current-bg default
#set -g window-status-current-attr bright
# Titles
set -g set-titles on
#set -g set-titles-string "#T"
set -g status-justify centre
set -g automatic-rename off
#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] "
#!/bin/bash
tmux new-session -d -n 'irc' 'weechat-curses'
tmux rename-session Tmux
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 '~/scripts/earthq.sh'
tmux selectp -t 2
tmux split-window -v -p 25 '~/stag3.sh'
tmux split-window -h '~/stag2.sh'
tmux new-window -n 'Stat' 'saidar -c'
tmux split-window -h 'htop'
tmux selectp -t 1
tmux split-window -v
tmux selectp -t 2
tmux clock-mode
tmux split-window -v
tmux selectp -t 0
tmux split-window -v -p 25 'mutt'
tmux new-window -n 'Media' 'mpsyt'
tmux split-window -h -p 40 'finch'
tmux selectp -t 1
tmux split-window -v -p 60 'pyradio'
tmux selectp -t 2
tmux split-window -v '~/build/torrentflix/bin/torrentflix'
tmux selectp -t 0
tmux split-window -v -p 35 '~/scripts/pms.py .pink floyd'
tmux split-window -h -p 50 'livestreamer-curses'
tmux split-window -v -p 25
tmux new-window -n 'FM' 'ranger'
tmux split-window -h 'sr google'
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 new-window -n 'SSH' 'ssh cirrus@192.168.1.33 -p 2236'
tmux selectw -t 1
tmux -2 attach-session -t Tmux
[[ $- = *i* ]] || return
export \
BROWSER=w3m \
EDITOR=nano \
ABSROOT="$HOME/build" \
BROWSER="${${DISPLAY+firefox}:-w3m}" \
EDITOR="nano" \
EDITOR=nano \
GREP_COLOR="240;1;33" \
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"
IPLAYER_OUTDIR="/mnt/INT2/video/pvr"
#toilet -f mono12 --gay --w 100 Arch
#alsi -c1=red -c2=blue -t red
#fortune | ponysay
#command cowsay -f tux $(fortune all)
cat /etc/issue
echo "Hello \e[1;37m\e[31m$USER.\e[0;51m"
echo "Today is \e[31m$(date)\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 "
#Powerline & oh-my-zsh config.
ZSH=~/.oh-my-zsh
ZSH_THEME="powerline"
#ZSH_THEME="gnzh"
source $ZSH/oh-my-zsh.sh
POWERLINE_FULL_CURRENT_PATH="true"
COMPLETION_WAITING_DOTS="true"
plugins=(git ant colorize)
DISABLE_AUTO_UPDATE="true"
## 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" | 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]}
}
# 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
}
## 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
}
ipod5g () {
HandBrakeCLI -i "$1" -o "${1%.*}.ipod5g.mp4" --preset="iPod"
}
cmdfu() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" \
| sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" ;}
score() { watch -n10 --no-title "w3m http://www.livescore.com/ |awk '/live [0-9H]+[^ ]/,/red cards/'" ;}
down4me() { curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';}
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 ;}
## 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; }
#
function ii() # get current host related info
{
echo -e "\n${RED}Kernel Information:$NC " ; uname -a
echo -e "\n${RED}Users logged on:$NC " ; w -h
echo -e "\n${RED}Current date :$NC " ; date
echo -e "\n${RED}Machine stats :$NC " ; uptime
echo -e "\n${RED}Memory stats :$NC " ; free
echo -e "\n${RED}Disk Usage :$NC " ; df -Th
echo -e "\n${RED}LAN Information :$NC" ; netinfoLAN
echo
}
#
#netinfo - shows LAN network information for your system (part of ii)
function netinfoLAN (){
echo "---------------------------------------------------"
/sbin/ifconfig eth0 | awk /'inet/ {print $2}'
#/sbin/ifconfig eth0 | awk /'bcast/ {print $3}'
#/sbin/ifconfig eth0 | awk /'inet6 addr/ {print $1,$2,$3}'
#/sbin/ifconfig eth0 | awk /'HWaddr/ {print $4,$5}'
echo "---------------------------------------------------"
}
#
function sprunge() {
if (($#)); then
if [[ -f $1 && -r $1 ]]; then
curl -F 'sprunge=<-' http://sprunge.us < "$1"
else
printf 'file %s does not exist or is not readable\n' "$1" >&2
return 1
fi
else
curl -F 'sprunge=<-' http://sprunge.us
fi
}
#
#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%}'
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
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
alias grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
LS_COLORS='di=0;35' ; export LS_COLORS
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 "Updating mirrors. " | pv -qL 20 && sudo pacman -Syy '
alias pacsu='echo -n "Updating 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"
alias coweru="cower -u" #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" #build,getdeps,clean,install
alias c-c="sudo pkgcacheclean -v 1" #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 reboot='espeak "system is reboosting" && sudo systemctl reboot' #reboot
alias poweroff='espeak "system is going down" && sudo systemctl poweroff -f' #halt
alias shutdown='echo -n "system is shutting down, Goodbye Commander " | pv -qL 10 && sudo shutdown -h now' #halt
alias supy="supybot /home/cirrus/supybot/Neo.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 && rm -rf /home/len/.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 twit1="twitter --format ansi -r"
alias twit2="~/scripts/rainbow.sh"
alias digit="echo dig +short txt archlinux.wp.dg.cx"
alias twit3='echo -n " Launching TTytter Twitter Client " | pv -qL 20 && ttytter -dostream' #CLI twitter client
#alias twit='echo -n " Launching Earthquake Command Line Twitter Client " | pv -qL 20 && earthquake' #twitter stream cli
alias twit="~/scripts/equake.sh"
alias adn="ayadn global --scroll"
alias adnsay="ayadn post"
alias adntv="ayadn -TV -b"
alias adnnp="ayadn -np -l"
alias adnrt="ayadn -O"
alias adnstar="ayadn -ST"
alias adnme="ayadn -m me"
alias adntr="ayadn -tr"
alias clbin='curl -v -F "clbin=<-" https://clbin.com'
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' #listening ports
alias lsl='ls -lh' #list files, dirs
alias nstat="netstat -p TCP -eWc" #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" #netstat
alias dmesg="dmesg | tail" #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/subscow.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'
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' #list 10 dir/files by size
alias sizevar='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
alias sizehome="sudo du -a ~/ | sort -n -r | head -n 10" #list 10 dir by size
alias uuid="echo -n Listing UUID | pv -qL 10 && ls /dev/disk/by-uuid/ -alh"
alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1'
alias du="du -h"
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" #top processes
alias hist="history -n 20" #shell history
alias psusage="ps aux --sort=-%cpu | grep -m 11 -v `whoami`" #cpu load
alias lsbig="echo 'listing files & directories by size' | pv -qL 10 && ls -lSrh | ccze -A" #sort files dirs by size
alias lsbig1="echo 'listing files by size' | pv -qL 10 && find . -printf '%s %p\n'|sort -nr|head | ccze -A" #sort files by size
#alias iohdd="iostat -d -x -p sda | grep -w 'sda' | awk '{print "Read: "$6 " Write: " $7}' "
alias iohdd="iostat -x "
alias mount7="~/scripts/mountwin"
alias umount7="~/scripts/umountwin"
alias mount64="~/scripts/mount64"
alias umount64="~/scripts/umount64"
alias mounts4="~/scripts/mounts4.sh"
alias umounts4="~/scripts/umounts4.sh"
#alias mpv="mpv --geometry=455x270"
alias ncmatrix="ncmatrix -I enp4s0 -R red -T yellow"
alias drives="echo -n Listing conected drives | pv -qL 10 && lsblk -f" #list hdds, uuid's
alias sourcezsh="source ~/.zshrc" #source .zshrc
alias sourcebash="source ~/.bashrc" #source .bashrc
alias listmod="ls -ltr" #list modified files
alias listf="ls -F" #list alphabeticaly
alias topu="top -u cirrus" #top proc for user
alias pingoogle="echo -n Pinging google.com... | pv -qL 10 && ~/pping.sh -c 5 google.com" #ping google
alias pingnorton="echo -n Pinging norton.com... | pv -qL 10 && ~/pping.sh -c 5 198.153.192.1"
alias pingnorton1="echo -n Pinging norton.com... | pv -qL 10 && ~/pping.sh -c 5 198.153.194.1"
alias pingpi="echo -n pinging pi ... | pv -qL 10 && ~/pping.sh 192.168.1.33 "
alias pping="~/pping.sh"
alias sshon="~/scripts/sshon.sh"
alias sshoff="~/scripts/sshoff.sh"
alias kernelmsg="sudo journalctl -f _TRANSPORT=kernel" #kernel messages
alias ports='netstat -tulanp' #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"
alias systemdmsg="sudo journalctl /usr/lib/systemd/systemd | ccze -A"
alias blame="systemd-analyze blame"
alias recterm="echo -n Recording Terminal | pv -qL 10 && asciinema rec"
alias boot="echo -n Boot Time | pv -qL 10 && systemd-analyze"
alias units="echo -n Listing Units | pv -qL 10 && systemctl list-units"
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' #freeRAM
alias meminfo='echo -n "RAM Information " | pv -qL 10 &&free -m -l -t' #freeRAM
#alias psmem='ps auxf | sort -nr -k 4' #top process eating memory
alias psmem='echo -n "Top Processes accesing RAM " | pv -qL 10 && ps auxf | sort -nr -k 4'
alias cpuinfo='lscpu' #CPU info
alias pscpu='echo -n "Top Processes accesing CPU " | pv -qL 10 && ps auxf | sort -nr -k 3'
alias gpumeminfo='echo -n GPU RAM Information | pv -qL 10 && cat /var/log/Xorg.0.log | ccze -A'
alias lsaur='echo -n Listing Installed AUR packages| pv -qL 20 && pacman -Qqm'
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'
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 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" '
alias weatherfc='echo -n "Glasgow UK Weather Weekly Forecast " | pv -qL 20 && weatherman -x " Glasgow,United Kingdom" '
alias grep="grep --color=auto"
#alias mympd="mplayer http://localhost:8000" #mpdstream
alias mympd='echo -n "Localhost MPD Server " | pv -qL 20 && mplayer http://localhost:8000'
alias findit="sudo find / -name" #find files
alias upd60="find . -mmin -60" #updated currentdir 60mins
alias rtupd60=" find / -mtime -1" #updated / 60mins
alias myip='~/scripts/ip.sh'
#alias myip='echo -n "My External IP " | pv -qL 20 && wget -q -O - http://icanhazip.com/ | tail'
#alias myip="curl ifconfig.me/host" #see external IP,remote host
alias ocpcur="ocp-curses"
#alias myip='echo -n "My External IP " | pv -qL 20 && curl ifconfig.me/host' #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 Archlinux server" | pv -qL 20 && ncmpcpp -h 192.168.1.33'
alias mpdsrv='echo -n "MPD Stream via Raspberry Pi Archlinux server" | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias pimpd='echo -n "MPD Stream via Raspberry Pi Archlinux Server" | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias tmuxtxt="cat ./tmux"
alias sshkeygen='echo -n "Generating SSH Key" | pv -qL 20 && ssh-keygen -t rsa -C nailzuk@gmail.com'
alias smemount="smemount "/home/cirrus/sme/" base64-Y2lycnVz:base64a-LWFlcy1VMkZzZEdWa1gxOHpaOHNORFhjc29YSEdWaWRkZE4zVTF2YVZaVEp1eHBWOVBweHJ1VWFpNm5MNWdOVnlwbEdV --server="eu.storagemadeeasy.com" --ct=30"
alias smeumount="sudo umount /home/cirrus/sme"
alias serve="cd /mnt/INT2/serve && echo -n localhost python server on port 8080 | python -m http.server 8080"
alias i3guide="w3m http://i3wm.org/docs/userguide.html"
alias pbay="w3m http://proxybay.de/browse/200"
alias imgup="/home/cirrus/.lutim/webapprt-stub"
alias pack="~/scripts/pac.sh"
alias zshconfig="leafpad ~/.zshrc"
alias tmuxconfig="leafpad ~/.tmux.conf"
alias uptime="echo '$(uptime | toilet -f term -F border --gay)'"
alias clock="echo '$(date +%T | toilet -f term -F border --gay)'"
#alias stream="livestreamer -p mpv"
alias tmnew="tmux new -s cirrus"
alias tmat="tmux a -t Tmux"
alias tmdt="tmux detach"
alias tmnw='tmux new-window -n'
alias tmsw="tmux select-window -t"
alias sw="tmux select-window -t"
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 respwn="tmux respawn-pane -t"
alias tm="~/tmux.sh"
alias tm1="~/tmux1.sh"
alias tmuxnw="tmux new-window -n"
#alias wifion="sudo systemctl start wicd"
#alias wifioff="sudo systemctl stop wicd"
alias wikip="wikipediaSearch"
alias awiki="w3m https://wiki.archlinux.org/"
alias rss="newsbeuter"
alias exit="clear; exit"
alias im="finch"
alias pong="ping -c 3 www.google.com"
alias google="sr google"
alias aurpkg="sr aur"
alias archpkg="sr archpkg"
alias archwiki="sr archwiki"
alias exit="clear; exit"
alias nicklist="cat ~/.irssi/nicklistfifo"
alias cppi="echo scp file/path cirrus@192.168.1.33:/srv/http | pv -qL 20"
#alias pingpi="ping 192.168.1.33 | ccze -A"
alias piport="sudo nc -v -n -z -w 1 192.168.1.33 1-9000"
alias fact='wget randomfunfacts.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;"'
alias quote='wget quotability.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;" '
alias top="vtop --theme cirrus"
alias mmap="node ~/build/blessed-contrib/examples/dashboard.js"
alias seeme="mplayer tv://"
alias tflix="~/build/torrentflix/bin/torrentflix"
alias oshells="ssh cirrus@thebes.openshells.net" #ssh cirrus@167.114.41.203 -p 22
alias cposhells='echo scp /path/to/file cirrus@thebes.openshells.net:/home/cirrus/public_html | pv -qL 20'
alias scrotall='~/scripts/scrot.sh'
alias scrotsel='~/scripts/scrots.sh'
alias ipupdate="sudo inadyn --dyndns_system default@no-ip.com -u cirrus1690 -p Rangers100 -a rpi.bounceme.net"
alias lastup='echo -e "\e[1;31mLast Upgraded:\e[0m " ; tac /var/log/pacman.log | grep upgraded | head -n 1 | cut -c 2-17'
alias updates="pacman -Qqu --dbpath /tmp/checkup-db-cirrus"
alias radio="~/scripts/radio"
alias menu='cd "$(ls | dmenu -nb "#100" -nf "#b9c0af" -sb "#000" -sf "#cb4b16" -i)"'
alias tweet="twitter set "
alias appsay=" ~/texapp.pl -status=- "
alias streams='livestreamer-curses'
alias pvr="~/get_iplayer.cgi --listen 127.0.0.1 --port 1935"
##Video Streams
alias bien1="mpv http://odna.octoshape.net/h5f3k7p8/cds/smil:adsport1hd/chunklist_b880000.m3u8"
alias futbol="mpv http://hls.novotelecom.ru/streaming/futbol/tvrec/playlist.m3u8"
alias las="mpv http://videocdn-us.geocdn.scaleengine.net/jblive-iphone/live/jblive.stream/playlist.m3u8"
alias futbol1="mpv http://hlsstr02.svc.iptv.rt.ru/hls/CH_FUTBALL2SD/variant.m3u8"
alias futbol2="mpv http://hlsstr02.svc.iptv.rt.ru/hls/CH_FUTBALL1SD/variant.m3u8"
alias futbol3="mpv http://46.173.175.164:8096/96?/udp/239.0.0.49:4000"
alias fitba="livestreamer -p mpv http://www.filmon.com/tv/filmon-football best"
alias animal="mplayer rtmp://178.22.217.150/tv/live/4.sdp"
alias twittv="mpv http://bglive-a.bitgravity.com/twit/live/high"
alias engadget="livestreamer -p mpv filmon.com/tv/the-engadget-show low"
alias hak5="livestreamer -p mpv filmon.com/tv/hak5-hd-mp4-30fps low"
alias aa="livestreamer -p mpv http://veetle.com/index.php/channel/view#521135971d84a/b3699d3c338ff7b8facc79a49be26cf0 best"
#alias bbc1="livestreamer -p mplayer http://filmon.com/tv/bbc-one low"
alias bbc1='~/get_iplayer --stream --type=livetv "BBC One" --player="mpv -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 chan4="livestreamer -p mpv tvcatchup.com/watch/4/channel=4 best"
alias chan5="livestreamer -p mpv tvcatchup.com/watch/5/channel=5 best"
alias rt="livestreamer -p mpv tvcatchup.com/watch/78/channel=78 best"
#alias bbcnews="livestreamer -p mpv tvcatchup.com/watch/17/channel=17 best"
#alias bbc2="livestreamer -p mpv filmon.com/tv/bbc-two low"
alias itv="livestreamer -p mpv https://itv.com/itvplayer/itv 1200"
alias itv2="livestreamer -p mpv https://itv.com/itvplayer/itv2 1200"
alias itv3="livestreamer -p mpv https://itv.com/itvplayer/itv3 1200"
alias itv4="livestreamer -p mpv https://itv.com/itvplayer/itv4 1200"
alias itvbe="livestreamer -p mpv https://itv.com/itvplayer/itvbe 1200"
alias crime2="livestreamer -p mplayer http://veetle.com/v/50bd64fd087cb best"
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 http://tvcatchup.com/watch/73/channel=73 best"
alias yesterday="livestreamer -p mpv filmon.com/tv/yesterday low"
alias 5usa="livestreamer -p mpv filmon.com/tv/5usa low"
alias natgeo1="mpv http://202.75.23.35/live/ch39/01.m3u8"
alias movies="mpv https://www.arconai.tv/movies/"
alias sp2="livestreamer -p mpv veetle.com/index.php/channel/view#53185f48af910 best"
alias sp="mpv https://www.arconai.tv/south-park/"
#alias topgear="livestreamer -p mpv veetle.com/index.php/channel/view#509aac82a99b5 best"
alias iplay="echo -n BBC iPlayer Shell Commands | pv -qL 10 && cat ~/iplayer.txt"
alias iplayer="echo -n Executing BBC iPlayer | pv -qL 10 && get_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-cli --share"
alias archey="toilet -f mono12 --gay --w 100 Arch"
alias sshcam="cd ~/build/sshcam && ./sshcam"
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 gempurge="for i in `gem list --no-versions`; do gem uninstall -aIx"
alias dclock="dclock -bg black -fg turquoise -led_off black -geometry 114x49"
alias xeyes="xeyes -bg black -center green -fg blue -geometry 114x49"
alias cbs="livestreamer -p mpv http://www.filmon.com/tv/cbs-reality low "
alias cbs1='livestreamer -p mpv https://www.filmon.com/tv/cbs-reality1 low'
alias crime1="livestreamer -p mplayer http://veetle.com/index.php/channel/view#54b22ca704b91 best"
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 fam2="livestreamer -p mpv http://vaughnlive.tv/111aaacharkfamily best"
alias fam="mpv https://www.arconai.tv/family-guy/"
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 docs="livestreamer -p mpv http://vaughnlive.tv/discoveryhouse best"
alias floyd="mplayer http://99.198.112.59:8000"
#
PATH=$PATH:/home/cirrus/.gem/ruby/2.2.0/bin:/home/cirrus/.bin
#PATH=$PATH:/root/.gem/ruby/2.0.0/bin
#PATH=$PATH:/root/.gem/ruby/2.2.0/bin
#PATH=$TMPDIR=/home/cirrus/temp
#alias issue="cat /etc/issue" b24cfb92-d62f-45fd-9e17-a8c704e5c140
# 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