Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active April 3, 2024 11:19
Show Gist options
  • Save cirrusUK/35a7642f81097f4e5158 to your computer and use it in GitHub Desktop.
Save cirrusUK/35a7642f81097f4e5158 to your computer and use it in GitHub Desktop.
termite emulator orange theme and other stuff
#┌───────┐
#│.bashrc│
#└───────┘
# ~/.bashrc
#
#alsi -c1=red -c2=blue -t red
#command cowsay -f tux $(fortune all)
#cat /etc/motd
wego | sed -n '2,7p'
echo "Hello $USER."
echo "Today is $(date +'%a %e %b : %G : %T %p')"
echo "Current working directory : $(pwd)"
#
# If not running interactively, don't do anything
#[[ $- != *i* ]] && return
alias ls='ls --color=auto'
#PS1="$PS1"'$([ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#D" | tr -d %) "$PWD")'
#PS1='\[\e[1;30m\]\[\e[47m\] \u \[\e[1;37m\]\[\e[48;5;166m\] \[\e[1;30m\]\[\e[48;5;166m\]\h \[\e[38;5;166m\]\[\e[100m\] \[\e[1;37m\]\W \[\e[1;90m\]\[\e[40m\]\[\e[0m\] '
#PS1='[\u@\h \W]\$ '
PS1='\[\e[1;30m\]\[\e[47m\] \u \[\e[1;37m\]\[\e[48;5;166m\] \[\e[1;30m\]\[\e[48;5;166m\]\h \[\e[38;5;166m\]\[\e[100m\] \[\e[1;37m\]\W \[\e[1;90m\]\[\e[40m\]\[\e[0m\] '
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
. startx
logout
fi
BASE16_SHELL=$HOME/.config/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
source /usr/share/doc/pkgfile/command-not-found.bash
source /usr/share/bash-completion/bash_completion
source ~/.config/functions.bash
#
dircolors=$HOME/.dircolors
if [[ -f $dircolors ]]; then
eval $(dircolors -b $dircolors)
else
eval $(dircolors)
fi
shopt -s autocd
shopt -s checkwinsize
#
complete -c man which
complete -cf sudo
#
export HISTFILE="$HOME/.bash_history"
export HISTSIZE=10000 SAVEHIST=10000
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:cd:pacsyy:pacsu:history:clear"
export LESS="-R"
export PAGER=less
#
. /home/cirrus/scripts/z/z.sh
setxkbmap -layout gb
PATH=$PATH:/home/cirrus/.gem/ruby/2.4.0/bin:/home/cirrus/.bin:/usr/lib/surfraw:$PATH
conky.config = {
out_to_console = true,
out_to_x = false,
background = true,
update_interval = 2,
use_spacer = none,
use_xft = true
};
conky.text = [[
┣┉ ${execi 7200 setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}'} ┉┫ ❮ ${execi 7200 wget -q -O - http://icanhazip.com/ | tail} ❯ 🐧 : ⏩ ${exec xprop -id $(xdotool getactivewindow) | grep 'WM_NAME(STRING)' | cut -d'"' -f2} ⏪ : ☰ 🇲🇵🇩 🔊 ${execi 120 mpc status -h 192.168.1.33 | perl -ne 'if (/\[playing\]/) {CORE::say ("[",`mpc current -h 192.168.1.33|tr -d "\n"`,"]")}'
} ♬♪ ☰ ...ᗧ...🇵🇦🇨🇲🇦🇳 = ${execi 7200 checkupdates | wc -l} ....ᗣ ...🇦🇺🇷 = ${execi 7200 cower -u | wc -l} ... ☰ 🌨 ${execi 3600 /home/cirrus/weather.sh "EUR|UK|UKXX0062|Glasgow"} ☰ ${time %I:%M}
]];
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 1920
max_text_height 10
maximum_size 10
minimum_size 10
# 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
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes
# How strict should if_up be when testing an interface for being up?
# The value is one of up, link or address, to check for the interface
# being solely up, being up and having link or being up, having link
# and an assigned IP address.
if_up_strictness address
# Add spaces to keep things from moving about? This only affects certain objects.
# use_spacer should have an argument of left, right, or none
use_spacer left
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 4
template0 80FF00
template1 808080
# Stuff after 'TEXT' will be formatted on screen
TEXT
# JSON for i3bar
[\
#Pacman
${if_running pacman}
{
"full_text": "PACMAN RUNNING", "color" : "\#F7B44F",
"short_text": "Pacman"
},
${endif}
# Music
${if_match "Playing" == "$mpd_status"}
{"full_text":"мρđ αυđίσ οùτρυτ ▶ ♪","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"$mpd_artist - $mpd_title | $mpd_album","color":"\#${template0}","separator":false,"separator_block_width":6},\
$endif
# Volume:
#{"full_text":"♬ ▏νσιυмε →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
#{"full_text":"${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}","color":"\##${template0}","separator":false,"separator_block_width":6},\
# LOAD:
{"full_text":"⛆├⚖ ℓσαđ →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${cpu cpu0}%","color":"\#${template0}","separator":false,"separator_block_width":6},\
# Memory:
{"full_text":"├⛃ ғяεε мεмσяү →","10E889":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${memeasyfree}","color":"\#${template0}","separator":false,"separator_block_width":6},\
# Download:
{"full_text":"├ đσŵη ↓","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${downspeedf enp4s0}<100}${downspeed enp4s0}","color":"\#92B37D","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf enp4s0}<300}${downspeed enp4s0}","color":"\#CCAE5E","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf enp4s0}<700}${downspeed enp4s0}","color":"\#DB70B8","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf enp4s0}<1000}${downspeed enp4s0}","color":"\#9470DB","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${downspeedf enp4s0}>=1000}${downspeed enp4s0}","color":"\#FF3333","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}${endif}${endif}"},\
# Upload:
{"full_text":"├ υρ ↑","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${upspeedf enp4s0}<15}${upspeed enp4s0}","color":"\#92B37D","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${upspeedf enp4s0}<35}${upspeed enp4s0}","color":"\#CCAE5E","separator":false,"separator_block_width":6},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${upspeedf enp4s0}>=35}${upspeed enp4s0}","color":"\#FF3333","separator":false,"separator_block_width":6},\
{"full_text":"${endif}${endif}${endif}"},\
{"full_text":"","color":"\#888888","separator":false,"separator_block_width":6},\
#Disk
{"full_text":"├⚿ яσσт:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${fs_used /}/${fs_size /}","color":"\#${template0}","separator":false,"separator_block_width":6},\
{"full_text":"├⛪ нσмε:","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${fs_used /home/}/${fs_size /home/}","color":"\#${template0}","separator":false,"separator_block_width":6},\
# NETWORK:
${if_up enp4s0}
{"full_text":"├⚯⚱ εтнεяηεт ","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${addr enp4s0}","color":"\#${template0}","separator":false,"separator_block_width":6},\
${endif}
# CPU temperature and usage:
{"full_text":"├⛋ ĉρυ: ","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"","color":"\#888888","separator":false,"separator_block_width":0},\
{"full_text":"${if_match ${cpu cpu1}<25}${cpu cpu1}","color":"\#92B37D","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu1}<50}${cpu cpu1}","color":"\#CCAE5E","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu1}<75}${cpu cpu1}","color":"\#FF9933","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu1}<=100}${cpu cpu1}","color":"\#FF3333","separator":false,"separator_block_width":0},\
{"full_text":"${endif}${endif}${endif}${endif}"},\
{"full_text":"%","color":"\#888888","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${cpu cpu2}<25}${cpu cpu2}","color":"\#92B37D","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu2}<50}${cpu cpu2}","color":"\#CCAE5E","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu2}<75}${cpu cpu2}","color":"\#FF9933","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu2}<=100}${cpu cpu2}","color":"\#FF3333","separator":false,"separator_block_width":0},\
{"full_text":"${endif}${endif}${endif}${endif}"},\
{"full_text":"%","color":"\#888888","separator":false,"separator_block_width":6},\
{"full_text":"${if_match ${cpu cpu3}<25}${cpu cpu3}","color":"\#92B37D","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu3}<50}${cpu cpu3}","color":"\#CCAE5E","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu3}<75}${cpu cpu3}","color":"\#FF9933","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu3}<=100}${cpu cpu3}","color":"\#FF3333","separator":false,"separator_block_width":0},\
{"full_text":"${endif}${endif}${endif}${endif}"},\
{"full_text":"%","color":"\#888888","separator":false,"separator_block_width":4},\
{"full_text":"${if_match ${cpu cpu4}<25}${cpu cpu4}","color":"\#92B37D","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu4}<50}${cpu cpu4}","color":"\#CCAE5E","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu4}<75}${cpu cpu4}","color":"\#FF9933","separator":false,"separator_block_width":0},\
{"full_text":"${else}"},\
{"full_text":"${if_match ${cpu cpu4}<=100}${cpu cpu4}","color":"\#FF3333","separator":false,"separator_block_width":0},\
{"full_text":"${endif}${endif}${endif}${endif}"},\
{"full_text":"%","color":"\#888888","separator":false,"separator_block_width":6},\
# DateTime:
{"full_text":"├ ⊙ тίмε: ","ffffff":"\#${template1}","separator":false,"separator_block_width":6},\
{"full_text":"${time %d.%m.%Y %H:%M}","color":"\#2aa198","separator":false,"separator_block_width":6}\
],
---------------------------------------------END----------------------------------------------------------------
#background yes
use_xft yes
#xftfont DejaVu Sans Mono:size=8
xftfont envy code r:size=10
xftalpha 0.6
out_to_console no
update_interval 1.5
total_run_times 0
draw_shades no
override_utf8_locale yes
# Create own window instead of using desktop (required in nautilus)
own_window yes
# If own_window is yes, you may use type normal, desktop or override
own_window_type panel
# Use pseudo transparency with own_window?
#own_window_transparent yes
#own_window_hints undecorated,sticky,skip_taskbar,skip_pager
minimum_size 10
#maximum_width 2220
#max_user_text 1920
border_inner_margin 0
border_outer_margin 0
double_buffer yes
default_color 497BF7
#color1 grey
alignment tl
gap_x 0
gap_y 0
#no_buffers yes
#use_spacer none
TEXT
${image ~/.icons/pacman2.png -p 14,0} Pacman Updates ${color1} ${execi 7200 checkupdates | wc -l} ${color} AUR Updates${color1} ${execi 7200 cower -u | wc -l} ${color #CCFF99}${image ~/.icons/arch6.png -p 164,-5}║ ${color #F1113F} Uptime:${color}↑${color1}$uptime ${color #CCFF99} ║ ${color}CPU1:↳${color1}${cpu cpu1}% ${cpugraph 6,40 ffffff CF1B49 -t cpu1} ${color} CPU2:→°${color1}${cpu cpu2}% ${cpugraph 6,40 ffffff CF1B49 -t cpu2} ${color} CPU3:↳${color1}${cpu cpu3}% ${cpugraph 6,40 ffffff CF1B49 -t cpu3} ${color} CPU4:→°${color1}${cpu cpu4}% ${cpugraph 6,40 ffffff CF1B49 -t cpu4} ${color}RAM:↳${color1}$memperc% ${memgraph 6,40 ffffff 28C93F -t} ${color} News:→ ${color #ffffff}${rss http://www.archlinux.org/feeds/news/ 1 item_titles 1 } ${color #1DCC9F}╠${color #CCFF99}Glasgow${color #CCFF99} ☼↳» ${color #1DCC9F}${execi 300 /home/cirrus/weather.sh "EUR|UK|UKXX0062|Glasgow"}╣ ${color #CCFF99}${font hermit:pixelsize=12} MPD:${if_mpd_playing}${font caviar dreams b:pixelsize=12} ${color #F27612}${mpd_artist}${color #CCFF99} ↔${color } ${mpd_title} ${color #CCFF99} ${endif}${color} ☰ ${color #F1113F}★
#~/.livestreamerrc
#define player
player=mpv --cache=5000
#try these stream qualitys
default-stream=worst,480p,best,high,low,720p
# Number of threads to use when streaming HLS streams
hls-segment-threads=2
# Number of threads to use when streaming HDS streams
hds-segment-threads=2
stream-segment-threads=3
# Use this option to let the player stay or close itself instead.
# player-no-close
# Use this option if you want Livestreamer to keep trying to access stream
#player-passthrough=http,hls,rtmp
# Use this if you want to transport the stream to the player via HTTP.
#player-http
# Show console output from the video player
verbose-player
## Setup of syntax coloring.
##
## Format:
##
## syntax "short description" ["filename regex" ...]
##
## The "none" syntax is reserved; specifying it on the command line is
## the same as not having a syntax at all. The "default" syntax is
## special: it takes no filename regexes, and applies to files that
## don't match any other syntax's filename regexes.
##
# color foreground,background "regex" ["regex"...]
## or
## icolor foreground,background "regex" ["regex"...]
##
## "color" will do case-sensitive matches, while "icolor" will do
## case-insensitive matches.
##
## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
## For foreground colors, you may use the prefix "bright" to get a
## stronger highlight.
##
## To use multi-line regexes, use the start="regex" end="regex"
## [start="regex" end="regex"...] format.
##
## If your system supports transparency, not specifying a background
## color will use a transparent color. If you don't want this, be sure
## to set the background color to black or white.
##
## All regexes should be extended regular expressions.
##
## If you wish, you may put your syntax definitions in separate files.
## You can make use of such files as follows:
##
## spifftastic nano highlighting nano!!
## Paint the interface elements of nano.
## This is an example; by default there are no colors.
set titlecolor brightwhite,black
set statuscolor brightwhite,black
set keycolor magenta
set functioncolor yellow
include /usr/share/nano-syntax-highlighting/apacheconf.nanorc
include /usr/share/nano-syntax-highlighting/arduino.nanorc
include /usr/share/nano-syntax-highlighting/asciidoc.nanorc
include /usr/share/nano-syntax-highlighting/asm.nanorc
include /usr/share/nano-syntax-highlighting/awk.nanorc
include /usr/share/nano-syntax-highlighting/cmake.nanorc
include /usr/share/nano-syntax-highlighting/c.nanorc
include /usr/share/nano-syntax-highlighting/coffeescript.nanorc
include /usr/share/nano-syntax-highlighting/colortest.nanorc
include /usr/share/nano-syntax-highlighting/conf.nanorc
include /usr/share/nano-syntax-highlighting/conky.nanorc
include /usr/share/nano-syntax-highlighting/csharp.nanorc
include /usr/share/nano-syntax-highlighting/css.nanorc
include /usr/share/nano-syntax-highlighting/cython.nanorc
include /usr/share/nano-syntax-highlighting/Dockerfile.nanorc
include /usr/share/nano-syntax-highlighting/dot.nanorc
include /usr/share/nano-syntax-highlighting/email.nanorc
include /usr/share/nano-syntax-highlighting/erb.nanorc
include /usr/share/nano-syntax-highlighting/fish.nanorc
include /usr/share/nano-syntax-highlighting/fortran.nanorc
include /usr/share/nano-syntax-highlighting/gentoo.nanorc
include /usr/share/nano-syntax-highlighting/git.nanorc
include /usr/share/nano-syntax-highlighting/glsl.nanorc
include /usr/share/nano-syntax-highlighting/go.nanorc
include /usr/share/nano-syntax-highlighting/groff.nanorc
include /usr/share/nano-syntax-highlighting/haml.nanorc
include /usr/share/nano-syntax-highlighting/haskell.nanorc
include /usr/share/nano-syntax-highlighting/html.nanorc
include /usr/share/nano-syntax-highlighting/ini.nanorc
include /usr/share/nano-syntax-highlighting/inputrc.nanorc
include /usr/share/nano-syntax-highlighting/java.nanorc
include /usr/share/nano-syntax-highlighting/javascript.nanorc
include /usr/share/nano-syntax-highlighting/js.nanorc
include /usr/share/nano-syntax-highlighting/json.nanorc
include /usr/share/nano-syntax-highlighting/keymap.nanorc
include /usr/share/nano-syntax-highlighting/kickstart.nanorc
include /usr/share/nano-syntax-highlighting/ledger.nanorc
include /usr/share/nano-syntax-highlighting/lisp.nanorc
include /usr/share/nano-syntax-highlighting/lua.nanorc
include /usr/share/nano-syntax-highlighting/makefile.nanorc
include /usr/share/nano-syntax-highlighting/man.nanorc
include /usr/share/nano-syntax-highlighting/markdown.nanorc
include /usr/share/nano-syntax-highlighting/mpdconf.nanorc
include /usr/share/nano-syntax-highlighting/mutt.nanorc
include /usr/share/nano-syntax-highlighting/nanorc.nanorc
include /usr/share/nano-syntax-highlighting/nginx.nanorc
include /usr/share/nano-syntax-highlighting/ocaml.nanorc
include /usr/share/nano-syntax-highlighting/patch.nanorc
include /usr/share/nano-syntax-highlighting/peg.nanorc
include /usr/share/nano-syntax-highlighting/perl6.nanorc
include /usr/share/nano-syntax-highlighting/perl.nanorc
include /usr/share/nano-syntax-highlighting/php.nanorc
include /usr/share/nano-syntax-highlighting/pkgbuild.nanorc
include /usr/share/nano-syntax-highlighting/pkg-config.nanorc
include /usr/share/nano-syntax-highlighting/po.nanorc
include /usr/share/nano-syntax-highlighting/pov.nanorc
include /usr/share/nano-syntax-highlighting/privoxy.nanorc
include /usr/share/nano-syntax-highlighting/puppet.nanorc
include /usr/share/nano-syntax-highlighting/python.nanorc
include /usr/share/nano-syntax-highlighting/reST.nanorc
include /usr/share/nano-syntax-highlighting/rpmspec.nanorc
include /usr/share/nano-syntax-highlighting/ruby.nanorc
include /usr/share/nano-syntax-highlighting/rust.nanorc
include /usr/share/nano-syntax-highlighting/scala.nanorc
include /usr/share/nano-syntax-highlighting/sed.nanorc
include /usr/share/nano-syntax-highlighting/sh.nanorc
include /usr/share/nano-syntax-highlighting/sls.nanorc
include /usr/share/nano-syntax-highlighting/sql.nanorc
include /usr/share/nano-syntax-highlighting/swift.nanorc
include /usr/share/nano-syntax-highlighting/systemd.nanorc
include /usr/share/nano-syntax-highlighting/tcl.nanorc
include /usr/share/nano-syntax-highlighting/tex.nanorc
include /usr/share/nano-syntax-highlighting/vala.nanorc
include /usr/share/nano-syntax-highlighting/vi.nanorc
include /usr/share/nano-syntax-highlighting/xml.nanorc
include /usr/share/nano-syntax-highlighting/xresources.nanorc
include /usr/share/nano-syntax-highlighting/yaml.nanorc
include /usr/share/nano-syntax-highlighting/yum.nanorc
include /usr/share/nano-syntax-highlighting/zsh.nanorc
##
## Unless otherwise noted, the name of the syntax file (without the
## ".nanorc" extension) should be the same as the "short description"
## name inside that file. These names are kept fairly short to make
## them easier to remember and faster to type using nano's -Y option.
##
## To include all existing syntax definitions, you can do:
include "/usr/share/nano/*.nanorc"
## Key bindings.
## See nanorc(5) for more details on this.
##
## Here are a few samples to get you going.
##
# bind M-W nowrap main
# bind M-A casesens search
# bind ^S research main
## Set this if your backspace key sends Del most of the time.
# bind Del backspace all
# ┏━┓┏━┓┏━┓┏━╸╻╻ ┏━╸
# ┣━┛┣┳┛┃ ┃┣╸ ┃┃ ┣╸
# .╹ ╹┗╸┗━┛╹ ╹┗━╸┗━╸
export FT2_SUBPIXEL_HINTING=1
export BROWSER=firefox
export CLIBROWSER=w3m
export BROWSERCLI=w3m
export PLAYER=mpv
export MUSICER=ocp-x11
export IMAGEVIEWER=feh
export ABSROOT=$HOME/build
export EDITOR=vim
export LESSCHARSET=utf-8
export SUDO_PROMPT=Password:
export IPLAYER_OUTDIR=/mnt/INT2/video/pvr
export MUTT_EDITOR=nano
export MOZ_USE_OMTC=1
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=r600
export SSH_KEY_PATH=~/.ssh/dsa_id
export ARCHFLAGS= arch x86_64
export VIRTUAL_ENV=/home/cirrus/venv
export CHEATCOLORS=true
export TERMINAL=st
export TERM=st-256color
export LESS=-RX
export PAGER=less
export SOCCER_CLI_API_TOKEN=0e479074171240a282136de60497dec9
export DBUS_SESSION_BUS_ADDRESS=/run/user/1000/bus
#
#perl
#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" \
#
# Set locale
export LANG="en_GB.UTF-8"
export TZ="Europe/London" # Force our time zone this location.
export LC_ALL=
#
# ls colors
#export LS_COLORS="di=34" # directories
#export LS_COLORS="${LS_COLORS}:fi=0" # files
#export LS_COLORS="${LS_COLORS}:ln=35" # symlinks
#export LS_COLORS="${LS_COLORS}:pi=0" # fifo file
#export LS_COLORS="${LS_COLORS}:so=32" # socket files
#export LS_COLORS="${LS_COLORS}:bd=33" # block devices
#export LS_COLORS="${LS_COLORS}:cd=33" # character devices
#export LS_COLORS="${LS_COLORS}:or=37" # orphaned symlinks
#export LS_COLORS="${LS_COLORS}:mi=37" # missing file (referenced to by symlink)
#export LS_COLORS="${LS_COLORS}:ex=31" # executable file
#
# Set XDG directories
#XDG_DATA_HOME="${HOME}/.local/share"
#XDG_CONFIG_HOME="${HOME}/.config"
#XDG_DATA_DIRS="/usr/local/share/:/usr/share/"
#XDG_CONFIG_DIRS="/etc/xdg/"
#XDG_CACHE_HOME="${HOME}/.cache"
#
# fix for QT5
#export QT_STYLE_OVERRIDE=GTK+
export QT_STYLE_OVERRIDE='gtk2'
#
# SLRN
export NNTPSERVER='freenews.netfront.net'
#
export PATH=$PATH=/home/cirrus/.gem/ruby/2.4.0/bin:/usr/lib/surfraw:/usr/lib/cw:$PATH
#!/bin/sh
#hawker64
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# This is here to prevent the creation of HOME/.dbus/session-bus/ by software
# using dbus.
if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval "$(dbus-launch --sh-syntax)"
fi
if [ -f ~/.Xresources ]; then
xrdb -merge ~/.Xresources
fi
# Give the localuser access to the Xserver using the Server Interpreted method
# (see Xsecurity(7)) which uses my user's UID via SO_PEERCRED to mediate access
# to the Xserver socket (/tmp/.X11-unix/X...).
#xhost +si:localuser:"$USER"
#
## fonts
xset +fp /usr/share/fonts/local
xset fp rehash
#xset m 18/10 0
fc-cache
## Keyboard layout
setxkbmap gb
# VDU Power Management
xset s off ; xset -dpms
## We dont need no wallpaper, wont work with compton
xsetroot -mod 16 16 -fg '#343d46' -bg '#2b303b' -cursor_name left_ptr &
export BROWSER=firefox
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=r600
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
##Autostarts
sh ~/.config/autostart/autostart &
## Finally, start the correct WindowManger based on the hostname
case "$(hostname)" in
"hawker64") exec dwm;;
esac
! __ ___ __ ___ ___ ___ _ _ _ __ ___ ___ ___
! \ \/ / '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
! _ > <| | | __/\__ \ (_) | |_| | | | (_| __/\__ \
!(_)_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/
!
!## Colors
#define S_base03 #191919
#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
*background: S_base03
*foreground: S_base0
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
#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
!! 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
*VT100*translations: #override Shift <Btn1Up>: exec-formatted("firefox '%t'", PRIMARY)
!! xterm*faceName: iosevka-term:style=Book:antialias=true:hinting=medium
xterm*faceName:xft:Iosevka Term-9
xterm*font: 7x13
xterm*faceSize: 10
xterm*dynamicColors: true
xterm.geometry: 50x20+0+0
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
XTerm*locale: true
XTerm*utf8: 1
! disable bold font faces, instead make text light blue.
XTerm.vt100.colorBDMode: true
XTerm.vt100.colorBD: rgb:82/a4/d3
! disable underlined text, instead make it white.
XTerm.vt100.colorULMode: true
XTerm.vt100.colorUL: rgb:e4/e4/e4
XTerm*on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
! similarly use colorIT for italics
!*foreground: #7a7a7a
!## teh URxvt stuff
URxvt.font : xft:Iosevka Term-9
URxvt.iconFile: /usr/share/icons/Clarity/scalable/apps/terminal.svg
URxvt.perl-ext: default,matcher
!Rxvt.url-launcher: firefox
Rxvt.matcher.button: 1
URxvt.url-launcher: /home/cirrus/.config/piper
URxvt.keysym.C-Delete: perl:matcher:last
URxvt.keysym.M-Delete: perl:matcher:list
URxvt.colorUL: #4682B4
URxvt.colorIT: #87af5f
URxvt.colorBD: #d7d7d7
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: #191919
URxvt.foreground: #7a7a7a
URxvt*highlightColor: #cb4b16
URxvt*highlightTextColor: #000000
!## teh dpi stuff
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.autohint: 0
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.Primary:style=Terminus:size=8,xft:Droid Sans Fallback:style=Regular,
*VT100.colorBDMode: true
*VT100.colorBD: red
*VT100.colorULMode: true
*VT100.colorUL: cyan
*VT100.veryBoldColors: 6
!## rofi
!rofi.opacity: 85
!rofi.width: 1024
!rofi.lines: 7
!rofi.columns: 4
!rofi.font: PragmataPro 10
!rofi.bw: 1
!rofi.color-enabled: true
!rofi.color-window: #191919, #cb4b16, #268bd2
!rofi.color-normal: #191919, #7a7a7a, #191919, #268bd2, #ffffff
!rofi.color-active: #191919, #268bd2, #191919, #cb4b16, #268bd2
!rofi.color-urgent: #393939, #f3843d, #393939, #268bd2, #ffc39c
!rofi.location: 6
!rofi.padding: 2
!rofi.yoffset: 100
!rofi.xoffset: 0
!rofi.fixed-num-lines: true
!rofi.hmode: false
!rofi.terminal: termite
!rofi.ssh-set-title: true
!rofi.disable-history: false
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░█▀█░█░░░▀█▀░█▀█░█▀▀░░░░░░░░
#░░░░░░░░░█▀█░█░░░░█░░█▀█░▀▀█░░░░░░░░
#░░░░░░░░░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░░░░░░░░
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
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' \
rmf="\rm -rf" \
tree='tree --charset unicode -L 3'
zstyle ':completion:*' menu select
setopt HIST_IGNORE_DUPS
grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
LS_COLORS='di=0;35' ; export LS_COLORS
###alias
alias acecache="rm -rf /home/cirrus/.ACEStream/.acestream_cache/live* "
alias age="sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'"
alias archpkg="surfraw archpkg"
alias archwiki="surfraw archwiki"
alias aurinfo='echotc us && echo " :\e[1;35m Showing AUR pkg info:\e[0m \e[0;37mᗧ . .\e[0;31mᗣ \e[0;37m .\e[0;33m🍓 \e[0;34m🍒 \e[0;35m🍇 \e[0;36m🍈 \e[0;37m .\e[0;37m .ᗣ ᗣ . .\e[1;33m🍇 \e[1;31m🍓 \e[0;37m . \e[1;32m🍈 \e[1;34m🍒 \e[0m\n " | pv -qL 20 && cower -i '
alias aurpkg="surfraw aur"
alias aw="surfraw archwiki $1"
alias awiki="w3m https://wiki.archlinux.org/"
alias bbcip="~/scripts/bbcip.sh"
alias bb='sudo bleachbit --clean system.cache system.localizations system.trash ; sudo paccache -vrk 2 || return 0'
alias bfly="source ~/venv/bin/activate && ~/venv/bin/butterfly"
alias blame="systemd-analyze blame"
alias boot="echo -n '\e[1;32mBoot Time:\e[0m ' | pv -qL 10 && systemd-analyze"
alias bootmsg="echo -n Boot Messages | pv -qL 10 && sudo journalctl -b | ccze -A" #boot messages
alias brexit="tmux detach"
alias bunny="/home/cirrus/build/bunny/bunny.py"
alias capsel="~/scripts/capsel" #sh script scrot -s uploads
alias c-c="sudo pkgcacheclean -v 1" #keep last 2 versions of packages
alias ...='cd ../../../'
alias cdaur="cd ~/build/aur" #cd to aur folder
alias cdd="cd .." #up 1 dir
alias ..='cd ..' # go up 2 dirs
alias chgrp='chgrp --preserve-root'
alias chmod='chmod --preserve-root'
alias chown='chown --preserve-root'
alias clbin="curl -v -F 'clbin=<-' https://clbin.com"
alias clear='clear; echo; echo; seq 1 $(tput cols) | sort -R | spark | ccze -A'
alias clock="date +%T | toilet -f term -F border --gay"
alias cmux="/mnt/INT2/downloads/dots/scripts/tm9-25"
alias make='colormake'
alias cowerd="cower -d " #cower download <pkg>
alias coweri="cower -i" #info
alias cowers="cower -s" #search AUR
alias coweru="cower -u" #Check for updates in the AUR.
alias cp='cp -i'
alias cposhells='echo scp /path/to/file [email protected]:/home/cirrus/public_html | pv -qL 20'
alias cppi="echo scp file/path [email protected]:/srv/http | pv -qL 20"
alias cpuinfo='lscpu' #CPU info
alias cputemp="sensors | awk NR==15 | colrm 30 | toilet -f term -F border --gay"
alias crimetime='mpv http://www.dailymotion.com/crimetime-tv'
alias cttv='youtube-viewer :re="^CrimeTime TV"'
alias dclock="dclock -bg black -fg turquoise -led_off black -geometry 114x49"
alias ddg='sr duckduckgo'
alias digit="echo dig +short txt archlinux.wp.dg.cx"
alias disks='echo "╓───── m o u n t . p o i n t s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -a; echo ""; echo "╓───── d i s k . u s a g e"; echo "╙────────────────────────────────────── ─ ─ "; df -h; echo ""; echo "╓───── U.U.I.D.s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -f;'
#alias dmesg="dmesg | tail"
alias drives="echo -n '\e[1;32mListing connected drives:\e[0m' | pv -qL 10 && lsblk -f" #list hdds, uuid's
alias du="du -h"
alias empty='echo -n "\e[1;32mTaking out teh trash:\e[0m " | pv -qL 10 && rm -rf /home/cirrus/.local/share/Trash/files'
alias engage="/mnt/INT2/downloads/dots/scripts/tm9"
alias epl=" soccer --time=10 | sed -n '/EPL/,/LLIGA/p' | sed '$d' "
alias epls=" soccer --live | sed -n '/Premier/,/Spanish/p' | sed '$d'| ccze -A "
alias errors="echo -n '\e[1;32mJournal Errors:\e[0m ' | pv -qL 10 && journalctl -b -p err | ccze -A"
alias exit="clear; exit"
alias fact='wget randomfunfacts.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;"'
alias finch='~/scripts/finch.sh'
alias findit="sudo find / -name" #find files
alias fuck='pkill -9'
alias fwx="startx /usr/bin/fvwm -- -nolisten tcp -br +bs -dpi 96 vt$XDG_VTNR"
alias gempurge="gem search --local --no-version | tail -n +3 | xargs gem uninstall --allsudo c"
#alias gemupd="gem update `gem outdated | cut -d ' ' -f 1` "
alias google="sr google"
alias gparted="sudo gparted" #launch gparted
alias gpumeminfo='echo -n GPU RAM Information | pv -qL 10 && cat /var/log/Xorg.0.log | ccze -A'
alias grep='grep --color=auto'
alias headlines='~/bbc | pv -qL 10 '
alias hex='cat /mnt/INT2/txt/colours.txt | ccze -A'
alias h='history'
alias hist="history -n 20" #shell history
#alias history20="cut -f1 -d" " .bash_history | sort | uniq -c | sort -nr | head -n 20"
alias i3guide="w3m http://i3wm.org/docs/userguide.html"
alias i3x="startx /usr/bin/i3 -- -nolisten tcp -br +bs -dpi 96 vt$XDG_VTNR"
alias im="finch"
alias imgup="/home/cirrus/.lutim/webapprt-stub"
#alias iohdd="iostat -d -x -p sda | grep -w 'sda' | awk '{print "Read: "$6 " Write: " $7}' "
alias iohdd="iostat -x "
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 ipupdate="sudo inadyn --dyndns_system [email protected] -u cirrus1690 -p PASSWORD -a alarmpi.bounceme.net"
alias irssigs="irssi -c irc.geekshed.net/" #irc server
alias islib='ldconfig -p | grep' #check if a library is installed?
alias jukebox='echo -n "\e[1;32mncmpcpp via Rpi Archlinux server:\e[0m " | pv -qL 20 && ncmpcpp -h 192.168.1.33'
alias judgejudy='youtube-viewer :re="^Judge Judy Full"'
alias jj="mpsyt pl 'https://www.youtube.com/playlist?list=PLvsTmoUXizUl-1e8rOoLpPkaRK0-6lWqX'"
alias kernelmsg="sudo journalctl -f _TRANSPORT=kernel" #kernel messages
alias killcli="echo -n '\e[1;31mStopping tmux session(s)\e[0m' | pv -qL 10 && sudo killall tmux"
alias killkodi='killall /bin/sh /usr/bin/kodi'
alias killndata="sudo systemctl stop netdata"
alias lanfix='sudo ip link set dev enp5s0 down && sudo ip link set dev enp5s0 up '
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 less="less -R"
alias listf="ls -F" #list alphabeticaly
alias listmod="ls -ltr" #list modified files
alias ln='ln -i'
alias lsaur="echo -n '\e[1;32mListing Installed AUR packages:\e[0m '| pv -qL 20 && pacman -Qqm"
alias lsaur="pacman -Qqm" #list installed AUR packages
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 lsbig="echo 'listing files & directories by size' | pv -qL 10 && ls -lSrh | ccze -A" #sort files dirs by size
alias lsl='ls -lh' #list files, dirs
alias ls='ls --color=auto'
alias lsgpu='lspci -k | grep -A 3 VGA' #show installed GPU info
alias lsupdates="echo -e '\e[1;32mWaiting Updates:\e[0m '| pv -qL 10 && pacman -Qqu --dbpath /tmp/checkup-db-cirrus"
alias makepkgi="makepkg -ci" #build,install
alias makepkgsci="makepkg -srci" #build,getdeps,clean,install,remove buildtime deps
alias matrix="cmatrix -b"
alias meminfo="echo -n '\e[1;32mRAM Information:\e[0m ' | pv -qL 10 &&free -m -l -t" #freeRAM
#alias meminfo='free -m -l -t' #freeRAM
#alias menu='cd "$(ls | dmenu -nb "#100" -nf "#b9c0af" -sb "#000" -sf "#cb4b16" -i)"'
alias mkdir='mkdir -p -v'
alias mmap="node ~/build/blessed-contrib/examples/dashboard.js"
alias mobdro='/usr/bin/chromium --profile-directory=Default --app-id=njkcfeepegfihkdmnnmcfbcddmdjknjl '
#alias mount='mount |column -t'
#alias mount='mount |column -t'
alias moon="curl -sL http://wttr.in/moon | head -n-4"
alias mountpi="sshfs -p 22 [email protected]:/home/cirrus /mnt/rpi"
alias mounts4="~/scripts/mounts4.sh"
alias mountsrv="sshfs -p 22 [email protected]:/srv/http /mnt/pisrv"
alias mp3dl="cd /mnt/INT2/music && wget -r -A.mp3 "
alias mpdbotgs="~/scripts/mpdbotgs"
#alias mpds="mpdscribble" #launch mpd lastfm scrobbler
alias mpdsrv='echo -n "MPD Stream via Raspberry Pi Archlinux server" | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias mpvg='mpv --profile=pseudo-gui'
alias mute='pactl set-sink-mute 3 toggle'
alias mv='mv -i'
alias mychan='youtube-viewer --channel-videos=mine'
alias myip='~/scripts/ip.sh'
alias mympd='echo -n "Rpi 🇲🇵🇩 🇸🇪🇷🇻🇪🇷 " | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias ncmatrix="ncmatrix -I enp5s0 -R red -T yellow"
alias ndata="sudo systemctl start netdata && xdg-open http://127.0.0.1:8899/"
alias netlisten='lsof -i -P | grep LISTEN' #listening ports
alias news='echo -n "\e[1;32mLaunching Newsbeuter RSS Reader For Command Line:\e[0m " | pv -qL 20 && newsbeuter' #launch rss feeder
alias nicklist="cat ~/.irssi/nicklistfifo"
alias nstat="netstat -p TCP -eWc" #netstat
alias nstato="netstat -tuael --numeric-hosts --numeric-ports" #netstat
alias nutsay=" texnut -status=- "
alias ocpcur="ocp-curses"
#alias onedrivelink='onedrive-cli link'
#alias onedrivels='onedrive-cli ls | ccze -A '
#alias onedriveup='onedrive-cli put'
#alias open='xdg-open'
alias oshells="ssh [email protected]" #ssh [email protected] -p 22
alias pacachec="pacman -Sc" #delete pacman cache
alias pacinfo='echo -n "ᗧ ᛫ ᛫ ᗣᗣ 🍒 . ᗣ .🍓 . . .ᗣᗣ . . 🍇. . 🍓🍈. .🍒. :\e[1;35m Pacman is showing pkg info:\e[0m " | pv -qL 20 && sudo pacman -Si' #show information about a package
alias pack="~/scripts/pac.sh"
alias paclistloc="pacman -Qqm" #list all locally installed pkgs
alias paclist="sudo pacman -Ql" #list all files installed by pkg
alias pacmanlog='tail -n 40 /var/log/pacman.log | ccze -A' #view 40 entries in pacman log
alias pacorph="sudo pacman -Qdt" #list all orphaned packages
alias pacown="echo -n '\e[1;35m Determine which package owns a file:\e[0m ' | pv -qL 20 && pacman -Qo" #determine which package owns a file
alias pacrns="sudo pacman -Rns" #uninstall package and deps
alias pacr="sudo pacman -R" #uninstall one or more package/s
alias pacss="sudo pacman -Ss" #search for a package (not AUR)
alias pacs="sudo pacman -S" #install package/s
alias pacsu='echotc us && echo "\e[1;32mUpgrading installed packages\e[0m: \e[0;37mᗧ . .\e[0;31mᗣ \e[0;37m .\e[0;33m🍓 \e[0;34m🍒 \e[0;35m🍇 \e[0;36m🍈 \e[0;37m .\e[0;37m .ᗣ ᗣ . .\e[1;33m🍇 \e[1;31m🍓 \e[0;37m . \e[1;32m🍈 \e[1;34m🍒 \e[0m\n" | pv -qL 40 && sudo pacman -Su '
alias pacsyu='echotc us && echo "\e[1;32mFull System Update\e[0m: \e[0;37mᗧ . .\e[0;31mᗣ \e[0;37m .\e[0;33m🍓 \e[0;34m🍒 \e[0;35m🍇 \e[0;36m🍈 \e[0;37m .\e[0;37m .ᗣ ᗣ . .\e[1;33m🍇 \e[1;31m🍓 \e[0;37m . \e[1;32m🍈 \e[1;34m🍒 \e[0m\n" | pv -qL 40 && sudo pacman -Syu' #update all packages to latest version
alias pacsyy='echotc us && echo "\e[1;32mRefreshing Mirrorlist\e[0m: \e[0;37mᗧ . .\e[0;31mᗣ \e[0;37m .\e[0;33m🍓 \e[0;34m🍒 \e[0;35m🍇 \e[0;36m🍈 \e[0;37m .\e[0;37m .ᗣ ᗣ . .\e[1;33m🍇 \e[1;31m🍓 \e[0;37m . \e[1;32m🍈 \e[1;34m🍒 \e[0m\n" | pv -qL 40 && sudo pacman -Syy '
#alias pacsyy='echo -n "ᗧ ᛫ ᛫ ᗣᗣ 🍒 . ᗣ .🍓 . . .ᗣᗣ . . 🍇. . 🍓🍈. .🍒. : \e[1;36mRefreshing Mirrorlist:\e[0m " | pv -qL 20 && sudo pacman -Syy '
alias palette="tco -d"
alias pbay="w3m http://proxybay.de/browse/200"
alias pimpd='echo -n "\e[1;32🇲🇵🇩 Stream via Raspberry Pi Archlinux Server:\e[0m " | pv -qL 20 && mplayer http://192.168.1.33:9001'
alias pingnorton1="echo -n Pinging norton.com... | pv -qL 10 && ~/pping.sh -c 5 198.153.194.1"
alias pingnorton="echo -n '\e[1;32mPinging norton.com...:\e[0m ' | pv -qL 10 && ~/pping.sh -c 5 198.153.192.1"
alias pingoogle='echo -n "\e[1;31mPinging google.com...:\e[0m " | pv -qL 10 && ~/pping.sh -c 5 google.com' #ping google
alias pingpi="echo -n pinging pi ... | pv -qL 10 && ~/pping.sh 192.168.1.33 "
#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 pizza="sleep 10m && echo 🍕 🍕 pizza is done 🍕 🍕 " #shellalert in 10 mins
alias pkginfo='/home/cirrus/scripts/pkginfo'
alias pkglist="comm -23 <(pacman -Qeq|sort) <(pacman -Qmq|sort) > pkglist.txt"
alias pms="~/scripts/pms.py"
alias pong="ping -c 3 www.google.com"
alias porn="/home/cirrus/scripts/skeet_xvideos.sh"
alias porn1="/home/cirrus/scripts/skeet_empflix.sh"
alias porn2="/home/cirrus/scripts/skeet_youjizz.sh"
alias ports='netstat -tulanp' #netstat
#alias poweroff='mpg123 ~/scripts/exit.mp3 && sudo systemctl poweroff -f' #poweroff
alias poweroff="~/scripts/shutdown.sh" #poweroff
alias pping="~/pping.sh"
#alias prebootmsg"="sudo journalctl --since=today | tac | sed -n '/-- Reboot --/{n;:r;/-- Reboot --/q;p;n;b r}' | tac"
alias pscpu='echo -n "Top Processes accesing CPU " | pv -qL 10 && ps auxf | sort -nr -k 3'
alias psmem='echo -n "Top Processes accesing RAM " | pv -qL 10 && ps auxf | sort -nr -k 4'
#alias psmem='ps auxf | sort -nr -k 4' #top process eating memory
alias ps='ps -eo pid,lstart,pcpu,cmd'
alias psusage="ps aux --sort=-%cpu | grep -m 11 -v `whoami`" #cpu load
alias pvr="~/get_iplayer.cgi --listen 127.0.0.1 --port 1935"
alias qtconfig="/usr/lib/qt4/bin/qtconfig" #qtconfig
alias quote='wget quotability.com -O - 2>/dev/null | grep \<strong\> | sed "s;^.*<i>\(.*\)</i>.*$;\1;" '
#alias radio="~/scripts/radio"
alias realtime='journalctl -f -all | ccze -A'
alias reboot='espeak "system is rebooting" && sudo systemctl reboot' #reboot
alias recterm="echo -n Recording Terminal | pv -qL 10 && asciinema rec"
alias red1="echo -n ' \e[1;32mArchLinux SubReddit For Command Line\e[1;32m' | pv -qL 10 && reddit_top -s archlinux"
alias red="echo -n Reddit For Command Line | pv -qL 10 && reddit_top"
alias remirror"/home/cirrus/scripts/reflector.py --country 'United Kingdom' --age 12 --protocol http --sort rate "
alias ritchie="~/scripts/unix.sh"
alias rm='rm -i'
alias root="sudo -i"
alias rpi='ssh alarmpi'
alias rss="newsbeuter"
alias rtupd60=" find / -mtime -1" #updated / 60mins
alias scrotall='~/scripts/scrot.sh'
alias scrotsel='~/scripts/scrots.sh'
alias seeme="mplayer tv://"
alias serve="cd /mnt/INT2/serve && echo -n localhost python server on port 8080 | python -m http.server 8080"
alias shotsel="~/shotsel" #upload scrot -s to server
alias shots="~/shots" #upload scrot to server
#alias shutdown='mpg123 /mnt/INT2/strek/exit.mp3 && sudo shutdown -h now' #shutdown
alias shutdown="~/scripts/shutdown.sh"
alias size='du -hs .[^.]* * | sort -h | ccze -A' #list 10 dir/files by size
alias sizehome="sudo du -a ~/ | sort -n -r | head -n 10" #list 10 dir by size
alias sizevar='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
alias slideshow='cd /home/cirrus/Pictures/comic | feh -z -D 15'
#alias smemount="smemount "/home/cirrus/sme/" base64-Y2lycnVz:base64a-LWFlcy1VMkZzZEdWa1gxOHpaOHNORFhjc29YSEdWaWRkZE4zVTF2YVZaVEp1eHBWOVBweHJ1VWFpNm5MNWdOVnlwbEdV --server="eu.storagemadeeasy.com" --ct=30"
#alias smeumount="sudo umount /home/cirrus/sme"
alias snarf='sudo httpry -i enp5s0 | grep /live/ | cut -c 50- | colrm 104'
alias sounds="~/scripts/pms.py"
alias sourcebash="source ~/.bashrc" #source .bashrc
alias sourcezsh="source ~/.zshrc" #source .zshrc
alias space="~/space.sh"
alias speeddown="echo -n \e[1;32mDisplaying Download Speed Graph\e[0m | pv -qL 10 && speedometer -rx enp5s0"
alias speedrw="echo -n '\e[1;32mShow R/W speeds:\e[0m ' | pv -qL 10 && dd bs=1000000 count=100 if=/dev/zero of=testfile & speedometer testfile"
alias speedtest="echo -n '\e[1;32mTest Download & Upload Speeds with option to share results via png file:\e[0m ' | pv -qL 10 && speedtest-cli --share"
alias speedup="echo -n \e[1;32mDisplaying Upload Speed Graph\e[0m | pv -qL 10 && speedometer -tx enp5s0"
alias sshcam="cd ~/scripts/sshcam && ./sshcam"
alias sshkeygen='echo -n "\e[1;32Generating SSH Key:\e[0m " | pv -qL 20 && ssh-keygen -t rsa -C [email protected]'
alias sshoff="~/scripts/sshoff.sh"
alias sshon="~/scripts/sshon.sh"
alias starwars="telnet towel.blinkenlights.nl" #starwars ascii
alias streamit="livestreamer -p mpv"
alias streams='livestreamer-curses'
alias subs="~/scripts/subscow.sh"
alias sudoers="sudo EDITOR=nano visudo"
alias sudo="sudo -i"
alias supy="supybot /home/cirrus/supybot/cirrusb0t.conf" #launch supybot
alias systemdmsg="sudo journalctl /usr/lib/systemd/systemd | ccze -A"
alias telehack="telnet telehack.com"
alias tele='/home/cirrus/Desktop/chrome-njkcfeepegfihkdmnnmcfbcddmdjknjl-Default.desktop'
alias tflix="~/scripts/torrentflix/bin/torrentflix"
alias timex="date +'%a%e %b %G %T' | figlet"
alias tmuxtxt="cat ./tmux"
alias toprun="ps axo %cpu,%mem,comm |sort -unr| head -n 9" #top processes
alias topu="top -u cirrus" #top proc for user
alias top="vtop --theme cirrus"
alias tpb='~/scripts/tpb.sh'
alias transoff="sudo systemctl stop transmission"
alias transon="sudo systemctl start transmission"
alias trz="transmission-daemon && transmission-remote-cli"
alias tweet="/home/cirrus/scripts/tweet.sh-master/tweet.sh post"
alias tweet1="twitter set 👊 "
alias tweet2="t update 👊 "
alias twit2="t stream timeline -C icon"
#alias twit="twitter --format ansi -r -R 60"
alias twit="~/scripts/rainbow.sh"
alias twit3='echotc us && echo "\e[1;31mLaunching Oysttyer Twitter Client:\e[0m " | pv -qL 20 && oystter -dostream' #CLI twitter client
alias twit4='echotc us && echo "\e[1;32mLaunching Command Line Twitter Client:\e[0m " | pv -qL 20 && twitter -r -R 60' #twitter stream cli
alias ujack=" /mnt/INT2/downloads/dots/scripts/union_jack.rb"
alias uktv="w3m http://tv.bleb.org/tv/align.html?c=bbc1_scotland+bbc2+itv1+ch4+five"
alias umountpi="sudo umount /mnt/rpi"
alias umounts4="~/scripts/umounts4.sh"
alias umountsrv="sudo umount /mnt/pisrv"
alias unetbootin='echo -n "\e[1;32mLaunching Unetbootin:\e[0m " | pv -qL 10 && sudo unetbootin' #launch unetbootin
alias units="echo -n '\e[1;32mListing Units:\e[0m ' | pv -qL 10 && systemctl list-units"
alias unix="curl -Ls https://git.io/unix#"
alias upd60="find . -mmin -60" #updated currentdir 60mins
alias updmirrors="reflector --protocol https --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist"
alias uptime="echo '$(uptime | toilet -f term -F border --gay)'"
alias usage='du -ch | grep total'
#alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1'
alias uuid="echo -n '\e[1;32mListing UUID:\e[0m ' | pv -qL 10 && ls /dev/disk/by-uuid/ -alh"
alias venv="source ~/venv/bin/activate && cd ~/venv/bin"
alias vimb='tabbed -c vimb -e'
alias vi="vim"
alias vods="gsearch site:vodlocker.com"
alias vod="w3m http://vodlocker.com"
alias weebit='bitlbee -F -u cirrus && weechat-curses'
alias wee='echo -n "\e[1;32mLaunching Weechat IRC Command Line Client:\e[0m " | pv -qL 20 && weechat-curses' #launch weechat
alias wee2='weechat -d /mnt/INT2/.weechat'
alias wego1="wego | head -n 7"
alias wget='wget -c'
alias wget='wget -c'
alias wikip="wikipediaSearch"
alias xeyes="xeyes -bg black -center green -fg blue -geometry 114x49"
alias xkcd="/home/cirrus/scripts/xkcd.py --random"
alias xi='xclip -i -sel clip'
alias xombrero=" xombrero 'https://www.firstonetv.eu/Live/United-Kingdom/Investigation-Discovery-(ID)-73' "
#alias ytdl="youtube-viewer -d" #youtube-viewer download -[URL]
alias ytv="~/scripts/ytv.sh"
#alias zshcfg="leafpad ~/.zshrc"
#-------- Suffix Alias {{{
#------------------------------------------------------
# open file with default program base on extension
# Ex: 'alias -s avi=mplayer' makes 'file.avi' execute 'mplayer file.avi'
alias -s {avi,flv,mkv,mp4,mpeg,mpg,ogv,wmv}=$PLAYER
alias -s {flac,mp3,ogg,wav}=$MUSICER
alias -s {gif,GIF,jpeg,JPEG,jpg,JPG,png,PNG}="background $IMAGEVIEWER"
alias -s {djvu,pdf,ps}="background $READER"
alias -s txt=$EDITOR
# might conflict with emacs org mode
alias -s {at,ch,com,de,net,org}="background $BROWSER"
###video####
#alias natgeow="sopcast-launcher sop://broker.sopcast.com:3912/253037 --player mpv"
alias ci="mpv 'http://smart.worldiptv.in:53333/C&INetwork?auth=lgmarinov+buzemska5'"
alias didx="mpv 'http://smart.worldiptv.in:53333/IDXtra?auth=lgmarinov+buzemska5C&'"
alias idx="sopcast-launcher sop://broker.sopcast.com:3912/256244 --player mpv"
alias xtra="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_348_reg.acelive/stream.mp4"
alias natgeo="arconai https://www.arconaitv.me/ng/"
alias bbt='arconai https://arconaitv.me/tbbt'
alias friends='arconai https://www.arconaitv.me/friendships/'
alias amdad="arconai https://arconaitv.me/american-dad/"
alias sp="arconai https://www.arconai.tv/south-park/"
alias discovery1='arconai https://www.arconaitv.me/disco/'
alias sp="arconai https://www.arconai.tv/south-park/"
alias movies="arconai https://www.arconai.tv/movies/"
alias fam="arconai https://www.arconai.tv/family-guy/"
alias docu='arconai https://www.arconaitv.me/docs/'
alias discovery1='arconai https://www.arconaitv.me/disco/'
alias sp="arconai https://www.arconai.tv/south-park/"
alias movies="arconai https://www.arconai.tv/movies/"
alias fam="arconai https://www.arconai.tv/family-guy/"
alias motorsports='http://motorsport.hopto.org:8080'
alias foxsport='mpv http://nlds187.cdnak.neulion.com/nlds/sportsnetnow/sn_360/as/live/sn_360_hd_ipad.m3u8'
alias espnus='mpv http://80.80.160.168/live/6/live.m3u8'
alias lonlive='mpv http://goo.gl/QYUP1M'
alias bien1="mpv http://odna.octoshape.net/h5f3k7p8/cds/smil:adsport1hd/chunklist_b880000.m3u8"
alias las="rtmpdump -v -r rtmp://jblive.videocdn.scaleengine.net/jb-live/play/jblive.stream | mpv - "
alias las1="mpv http://videocdn-us.geocdn.scaleengine.net/jblive-iphone/live/jblive.stream/playlist.m3u8"
alias animal="acestream-launcher acestream://22782c97067d0b16a7f3e7891a4e9df6073ccca4 --player mpv"
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 mpv http://filmon.com/tv/bbc-one low"
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="mpv -cache 512 -"'
alias bbc4='~/get_iplayer --stream --type=livetv "BBC Four" --player="mpv -cache 512 -"'
alias bbcnews='~/get_iplayer --stream --type=livetv "BBC News" --player="mpv -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="mpv http://rt.ashttp14.visionip.tv/live/rt-global-live-HD/playlist.m3u8"
#alias bbcnews="livestreamer -p mpv tvcatchup.com/watch/17/channel=17 best"
#alias bbc2="livestreamer -p mpv filmon.com/tv/bbc-two low"
#alias bbc1="livestreamer -p mpv filmon.com/tv/bbc-one 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="streamlink -p mpv https://itv.com/itvplayer/itvbe 1200"
alias cbsdrama="streamlink -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 sp2="livestreamer -p mpv veetle.com/index.php/channel/view#53185f48af910 best"
alias discovery"sopcast-launcher sop://broker.sopcast.com:3912/256241 --player mpv"
#alias topgear="livestreamer -p mpv veetle.com/index.php/channel/view#509aac82a99b5 best"
alias cbs="streamlink -p mpv http://www.filmon.com/tv/cbs-reality low "
alias cbs1='streamlink -p mpv https://www.filmon.com/tv/cbs-reality1 low'
alias crime="sopcast-launcher sop://broker.sopcast.com:3912/256244 --player mpv"
alias crime1="mpv http://www.dailymotion.com/crimetime-tv"
alias crime2="mpv 'http://smart.worldiptv.in:53333/C&INetwork?auth=lgmarinov+buzemska5'"
alias aaliens="livestreamer -p mpv http://vaughnlive.tv/bob_2012 worst"
alias lawnorder="livestreamer -p mpv http://vaughnlive.tv/getyourdocsoff worst"
alias fam2="livestreamer -p mpv http://vaughnlive.tv/111aaacharkfamily worst"
alias euronews-'mpv https://youtu.be/PfaVDgd17Io'
alias duck="livestreamer -p mpv veetle.com/index.php/channel/view#557d3664e7e09/173882d3f745d7c22598eae8602511be best"
alias cops="livestreamer -p mpv http://vaughnlive.tv/111aaacharkcops worst"
#alias natgeo="livestreamer -p mpv http://vaughnlive.tv/lmshows_ngbbc best"
alias pickers="livestreamer -p mpv http://vaughnlive.tv/111aaacharkpickers worst"
alias sharktank="livestreamer -p mpv http://vaughnlive.tv/111aaacharkbizness worst"
alias docs="livestreamer -p mpv http://vaughnlive.tv/discoveryhouse worst"
alias floyd="mplayer http://99.198.112.59:8000"
alias skynews='mpv https://youtu.be/y60wDzZt8yg'
alias cnn='mpv http://wpc.c1a9.edgecastcdn.net/hls-live/20C1A9/cnn/ls_satlink/b_828.m3u8'
alias playlists='cd /mnt/INT2/video/medialink'
alias pls="mpv http://nstreamevo.kumuki.com/4254/iptv/2000/playlists/1.m3u"
alias cirruslog="cat /home/cirrus/.weechat/logs/irc.geekshed.#cirrus.weechatlog | sed 's/[[:space:]]\{1,\}/;/1' | sed 's/[[:space:]]\{1,\}/;/1' | sed 's/[[:space:]]\{1,\}/;/1' | column -s\; -t | ccze -A "
alias archlog="cat /home/cirrus/.weechat/logs/irc.freenodessl.#archlinux.weechatlog | sed 's/[[:space:]]\{1,\}/;/1' | sed 's/[[:space:]]\{1,\}/;/1' | sed 's/[[:space:]]\{1,\}/;/1' | column -s\; -t | ccze -A "
alias -g VV=' | vim -R - '
alias ss1="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_10351.acelive/stream.mp4"
alias ss2="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_14311.acelive/stream.mp4"
alias ss3="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_6909.acelive/stream.mp4"
alias ss4="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_12739.acelive/stream.mp4"
alias ss5="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_16590.acelive/stream.mp4"
alias bt1="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_10634.acelive/stream.mp4"
alias bt2="mpv http://92.247.168.100:8000/torrent/http%3A%2F%2Fsuper-pomoyka.us.to%2Ftrash%2Fttv-list%2Facelive%2Fttv_9220.acelive/stream.mp4"
#................................................#
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░#
#░░░░░░░░█▀▀░█░█░█▀█░█▀▀░▀█▀░▀█▀░█▀█░█▀█░█▀▀░░░░░#
#░░░░░░░░█▀▀░█░█░█░█░█░░░░█░░░█░░█░█░█░█░▀▀█░░░░░#
#░░░░░░░░▀░░░▀▀▀░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀▀░░░░░#
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░#
#................................................#
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
## 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]}
}
# download the aur(4) package to the current directory, similar to cower -d from the old AUR, but using the officially supported method; git.
# usage:
# $ aurd <package-name>
aurd() {
git clone https://aur.archlinux.org/$1.git/
#git clone ssh://[email protected]/$1.git/
}
# download the aur(4) package to the current directory, cd, build (clean) and prompt to install.
aurb() {
git clone https://aur.archlinux.org/$1.git/ && cd $1 && makepkg -sci
#git clone ssh://[email protected]/$1.git/ && cd $1 && makepkg -sci
}
# update the package in the current directory
auru() {
git pull && rm -f *.pkg.tar.xz || true && makepkg -sci
}
# Automatically do an ls after each cd
cd() {
if [ -n "$1" ]; then
builtin cd "$@" && ls --group-directories-first --color=auto
else
builtin cd ~ && ls --group-directories-first --color=auto
fi
}
aurctl(){
curl -s https://aur.archlinux.org/packages/"${1:0:2}/$1/$1".tar.gz | tar xz
}
#pb pastebin || Usage: 'command | pb or pb filename'
pb () {
curl -F "c=@${1:--}" https://ptpb.pw/
}
pbs () {
gm import -window ${1:-root} /tmp/$$.png
pbx /tmp/$$.png
}
pbx () {
curl -sF "c=@${1:--}" -w "%{redirect_url}" 'https://ptpb.pw/?r=1' -o /dev/stderr | xsel -l /dev/null -b
}
## EXTRACT FUNCTION ## | Usage: extract <file>
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
}
#list servicesd
listd() {
echo -e ${BLD}${RED}" --> SYSTEM LEVEL <--"${NRM}
find /etc/systemd/system -mindepth 1 -type d | sed '/getty.target/d' | xargs ls -gG --color
[[ $(find $HOME/.config/systemd/user -mindepth 1 -type d | wc -l) -eq 0 ]] ||
(echo -e ${BLD}${RED}" --> USER LEVEL <--"${NRM} ; \
find $HOME/.config/systemd/user -mindepth 1 -type d | xargs ls -gG --color)
}
#cd to dir of defined file | Usage: cdf <file>
cdf () {
cd "$(dirname "$(locate -i "$*" | head -n 1)")" ;
}
#wego weather function## | usage wttr `city`
wttr () {
curl http://wttr.in/$1
}
#web search tool | Usage: gsearch <value>
function gsearch {
Q="$@";
GOOG_URL='https://www.google.co.uk/search?tbs=li:1&q=';
AGENT="Mozilla/4.0";
stream=$(curl -A "$AGENT" -skLm 50 "${GOOG_URL}${Q//\ /+}" | grep -oP '\/url\?q=.+?&amp' | sed 's|/url?q=||; s|&amp||');
echo -e "${stream//\%/\x}";
}
#search vodlocker for videos | Usage: vodlocker <foo>
vodlocker() {
gsearch site:vodlocker.com "$1" >> /mnt/INT2/video/medialink/mpv/"$1".m3u && mpv --playlist /mnt/INT2/video/medialink/mpv/"$1".m3u
}
#Convert to .mp4 | Usage: ipod5g foo.mpg
ipod5g () {
HandBrakeCLI -i "$1" -o "${1%.*}.ipod5g.mp4" --preset="iPod"
}
#List Realtime Soccer Results | Usage: score
#score() {
# watch -n10 --no-title "w3m http://www.livescores.com/ |awk '/live [0-9H]+[^ ]/,/red cards/'" ;
#}
#List Realtime Soccer Results from the SPL| Usage: spl
#spl() {
#watch -n10 --no-title "w3m http://www.livescores.com/soccer/scotland/premier-league/ | awk '/live [0-9H]+[^ ]/,/Team/' | sed -n '1,25p'"
#}
##List Realtime Soccer Results from the EPL| Usage: epl
#epl() {
# watch -n10 --no-title "w3m http://www.livescores.com/soccer/england/premier-league/ | awk '/live [0-9H]+[^ ]/,/Team/' | sed -n '1,41p'"
#}
function results() {
watch -n10 --no-title "w3m http://www.livescores.com/ |awk '/live [0-9H]+[^ ]/,/red cards/'"
}
#Is server up ? | Usage: down4me <www.foo.com>
down4me() {
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g';
}
f() {
find . -iregex ".*$@.*" -printf '%P\0' | xargs -r0 ls --color=auto -1d
}
#Sprunge Paste | Usage: sprunge <file>
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
}
# Compile and execute a C source on the fly
csource() {
[[ $1 ]] || { echo "Missing operand" >&2; return 1; }
[[ -r $1 ]] || { printf "File %s does not exist or is not readable\n" "$1" >&2; return 1; }
local output_path=${TMPDIR:-/tmp}/${1##*/};
gcc "$1" -o "$output_path" && "$output_path";
rm "$output_path";
return 0;
}
## 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; }
#internetinfo | Usage: ii
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 enp5s0 | awk /'inet/ {print $2}'
/sbin/ifconfig enp5s0 | awk /'bcast/ {print $3}'
/sbin/ifconfig enp5s0 | awk /'inet6 addr/ {print $1,$2,$3}'
/sbin/ifconfig enp5s0 | awk /'HWaddr/ {print $4,$5}'
echo "---------------------------------------------------"
}
#Transfer/share any file 5GB limit | Usage: transfer ~/foo/bar
transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }; alias transfer=transfer
# copy | Usage: copy /source/file /destination/file
copy() {
size=$(stat -c%s $1)
dd if=$1 &> /dev/null | pv -petrb -s $size | dd of=$2
}
# Run a command x times | Usage: runx <value>
# http://www.stefanoforenza.com/how-to-repeat-a-shell-command-n-times/
runx() {
n=$1
shift
while [ $(( n -= 1 )) -ge 0 ]
do
"$@"
done
}
# mkdir & cd into it | Usage: mkcd
mkcd() {
if [ ! -n "$1" ]; then
echo "Enter a name for this folder"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
fi
}
#Search files & directories | Usage: search <file/dirs>
search() {
find . -iname "*$@*" | less;
}
#Grep process | Usage: psgrep <process>
psgrep() { ps axuf | grep -v grep | grep "$@" -i --color=auto;
}
# Google images search bash function | Usage: images <foo>
images() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://www.google.co.uk/search?tbm=isch&hl=en&source=hp&biw=1366&bih=679&q=$search"
}
# YouTube search bash function | Usage: videos <foo>
videos() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://www.youtube.com/results?search_query=$search"
}
showbookmarks() {
awk 'NF != 0 && !/#/ {print $1}' ~/.config/surfraw/bookmarks | sort -n ;
}
# DuckDuckGo search bash function | Usage: ddg <foo>
ddg() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://duckduckgo.com/?q=$search"
}
dailym() {
search=""
for term in $*; do
search="$search%20$term"
done
w2m "http://dailymotion.com/gb?q=$search"
}
# Wikipedia English search bash function | Usage: wiki <foo>
wiki() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://en.wikipedia.org/w/index.php?search=$search"
}
# Android Play Store search bash function | Usage: android <foo>
android() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://play.google.com/store/search?q=$search"
}
# Soundcloud music bash search function | Usage: soundcloud <foo>
soundcloud() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "https://soundcloud.com/search?q=$search"
}
# StackOverflow bash search function | Usage: so <foo>
so() {
search=""
for term in $*; do
search="$search%20$term"
done
w3m "http://stackoverflow.com/search?q=$search"
}
# Pleer music bash search function | Usage: pleer <foo>
pleer() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "https://pleer.com/search?q=$search"
}
# Amazon UK search bash function | Usage: amazon <foo>
amazon() {
search=""
for term in $*; do
search="$search%20$term"
done
xdg-open "http://www.amazon.co.uk/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=$search&x=0&y=0"
}
# Dictionary | Usage define <foo>
define() {
curl -s dict://dict.org/d:$1 | grep -v '^[0-9]'
}
# set volume
vol ()
{
pactl set-sink-volume 5 $1% ;
}
#encrypt <file> | Usage encrypt <file>
function encrypt() {
[ -e "$1" ] || return 1
openssl des3 -salt -in "$1" -out "$1.$CRYPT_EXT"
[ -e "$1.$CRYPT_EXT" ] && shred -u "$1"
}
#decrypt <file.> | Usage decrypt <file.>
function decrypt() {
[ -e "$1" ] || return 1
[ "${1%.$CRYPT_EXT}" != "$1" ] || return 2
openssl des3 -d -salt -in $1 -out ${1%.$CRYPT_EXT}
[ -e "${1%.$CRYPT_EXT}" ] && rm -f "$1"
}
#wallpaper changer
fehpap() {
zenity --file-selection | xargs feh --bg-scale
}
#replaces spaces with underscores #remove spaces from files in current dir
nospace() {
for f in *\ *; do mv "$f" "${f// /_}"; done
}
unspacer() {
for i in *
do
mv ./"$i" ./$(echo $i | tr '\ ' '_')
done
}
# send link to podbeuter queue | usage podbeuter <podcasturl>
podqueue() {
echo "$1 \"$HOME/Downloads/$(echo "$1" | awk -F'/' '{ print $NF }')\"" >> ~/.newsbeuter/queue ;
}
myt() {
mpv ytdl://ytsearch10:"$1"
}
#play CrimeTime TV Channel
#crimetimetv() {
# mpv https://www.youtube.com/channel/UCAYputwkZrmj_tTV86F7lbA/videos
#}
#youtube-dl full 1080p video/audio | Usage ytdlhd <url>
ytdlhd() {
youtube-dl "$1" -f 137+140
}
#rtmp sniffing
sniff-start() {
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;
}
sniff-capture() {
rtmpsrv ;
}
sniff-end() {
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT ;
}
cmdfu() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" \
| sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" ;
}
#Show used mirrors {archlinux}
mymirrors() {
grep -v '^$\|^#' /etc/pacman.d/mirrorlist | awk '{print $3}' | awk -F '/' '{print $3}';
}
#URL Shortener | Usage : short <url>
short() {
curl -F"shorten=$*" https://0x0.st
}
#URL Shortener | Usage : shorten <url>
shorten() {
pbpst -s $1
}
#share / upload any file 256.0 MiB limit | Usage: share ~/foo/bar
share() {
curl -F"file=@$*" https://0x0.st
}
uppb() {
curl -F c=@- https://ptpb.pw < $1
}
ytconvert() {
ffmpeg -i "$1" -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a copy "$2.mkv"
}
#mp42mp3
mp42mp3 () {
ffmpeg -i "$i" -acodec libmp3lame -ab 160k -ar 44100 -ac 2 "$target${i%*.mp4}".mp3
}
stopwatch(){
date1=`date +%s`;
while true; do
days=$(( $(($(date +%s) - date1)) / 86400 ))
echo -ne "$days day(s) and $(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r";
sleep 0.1
done
}
man() {
LESS_TERMCAP_md=$'\e[01;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;44;33m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;32m' \
command man "$@"
}
vless() {
vim -R "$@" ;
}
w3mimg() {
w3m -o imgdisplay=/usr/lib/w3m/w3mimgdisplay $1 ;
}
act-venv() {
cd ~/venv
source ~/venv/bin/activate
}
gg-music() { url=$(echo "https://encrypted.google.com/search?hl=en&q=
intitle:index.of+mp3+"$@"+-html+-htm+-txt"\
| sed 's/ /+/g'); $BROWSER $url; }
gg-piratebay() { url=$(echo "http://thepiratebay.org/search/$@" \
| sed 's/ /+/g'); $BROWSER $url; }
gg-pleer() { url=$(echo "https://pleer.com/search?q=$search/$@" \
| sed 's/ /+/g'); $BROWSER $url; }
gg-dm() { url=$(echo "https://www.dailymotion.com/gb/relevance/universal/search/$@" \
| sed 's/ /+/g'); $BROWSER $url; }
gg-pastebin() { sitelist=$(echo "pastebin.com paste2.org pastie.org snipt.net
heypasteit.com/clip pastee.org shell-fu.org commandlinefu.com catonmat.net
linuxconfig.net github.com bitbucket.org slexy.org stackoverflow.com
askubuntu.com superuser.com dotfiles.org dotshare.it gitorious.org
serverfault.com wikia.com stackexchange.com" \
| sed 's/ /\+OR\+site\:/g')
url=$(echo "https://encrypted.google.com/search?hl=en&q=$@+site:$sitelist"\
| sed 's/ /+/g'); $BROWSER $url; }
#stream video from https://www.arconaitv.me/ | usage: arconai https://www.arconaitv.me/foo
#arconai(){
#command livestreamer --player $player hls://$(curl $url | grep m3u8 | cut -d '"' -f 14 | sed 's/\\//g') live
#command livestreamer --player-passthrough=hls --player "cvlc --file-caching=20000" hls://$(curl "$*" | grep m3u8 | cut -d '"' -f 14 | sed 's/\\//g') best
#}
arconai(){
command livestreamer --player-passthrough=hls --player "mpv" hls://$(curl "$*" | grep m3u8 | cut -d '"' -f 14 | sed 's/\\//g') best
}
# Random tips, needs xmlstarlet & pandoc. Usage: taocl
taocl() {
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
pandoc -f markdown -t html |
xmlstarlet fo --html --dropdtd |
xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" |
xmlstarlet unesc | fmt -80 }
# Colored find results: | Usage f <string>
f() {
find . -iregex ".*$@.*" -printf '%P\0' | xargs -r0 ls --color=auto -1d
}
🍕(){
T=(🕐 🕑 🕒 🕓 🕔 🕕 🕖 🕗 🕘 🕙 🕚 🕛 🕜 🕝 🕞 🕟 🕠 🕡 🕢 🕣 🕤 🕥 🕦 🕧)
for ((i=0;i<=600;i++)); do
printf "\033[D\033[D\033[D ${T[$i]} "; sleep 5s
done
echo "pizza! 🍕 🍕 🍕 "
}
#-------- Configurations {{{
#------------------------------------------------------
cfg-alias() { vim ~/.config/alias.zsh ;}
#cfg-aliasrc() { vim ~/.config/.aliasrc ;}
cfg-autostart() { vim ~/.config/autostart/autostart ;}
cfg-bashrc() { vim ~/.bashrc ;}
cfg-bitlbee() { vim ~/.config/bitlbee.conf ;}
cfg-cava() { vim ~/.config/cava/config ;}
cfg-cli.txt() { vim ~/mnt/INT2/txt/cli.txt ;}
cfg-conky() { vim ~/.conkyrc ;}
cfg-conky5() { vim ~/.conkyrc5 ;}
cfg-cower() { vim ~/.config/cower/config ;}
cfg-dunst() { vim ~/..config/dunst/dunstrc ;}
cfg-dwm() { vim ~/.dwm/dwm/config.h ;}
cfg-functions() { vim ~/.config/functions.zsh ;}
cfg-fstab() { sudo vim /etc/fstab ;}
cfg-hosts() { sudo vim /etc/hosts ;}
cfg-dwm() { vim ~/.dwm/dwm/config.h ;}
cfg-livestreamer() { vim ~/.livestreamerrc ;}
cfg-mailcap() { vim ~/.mailcap ;}
cfg-mc() { vim ~/.config/mc/ini ;}
cfg-mpd() { vim ~/.mpd/mpd.conf ;}
cfg-mplayer() { vim ~/.mplayer/config ;}
cfg-mpv() { vim ~/.mpv/config ;}
cfg-muttrc() { vim ~/.muttrc ;}
cfg-nanorc() { vim ~/.nanorc;}
cfg-ncmpcpp() { vim ~/.ncmpcpp/config ;}
cfg-newsbeuter() { vim ~/.newsbeuter/config ;}
cfg-newsbeuter-queue() { vim ~./newsbeuter/queue ;}
cfg-newsbeuter-urls() { vim ~/.newsbeuter/urls ;}
cfg-notes() { vim ~/.notes ;}
cfg-ocp() { vim ~/.ocp/ocp.ini ;}
cfg-pacman() { sudo vim /etc/pacman.conf ;}
cfg-pacman-mirrorlist() { sudo vim /etc/pacman.d/mirrorlist ;}
cfg-profile() { vim ~/.profile ;}
cfg-ranger() { vim ~/.config/ranger/rc.conf ;}
cfg-ranger-rifle() { vim ~/.config/ranger/rifle.conf ;}
cfg-ranger-commands() { vim ~/.config/ranger/commands.py ;}
cfg-st() { vim ~/.dwm/st/config.h ;}
cfg-slrnrc() { vim ~/.slrnrc ;}
cfg-stag2() { vim ~/stag2.sh ;}
cfg-stag2() { vim ~/stag3.sh ;}
cfg-streamlink() { vim ~/.streamlinkrc ;}
cfg-termite() { vim ~/.config/termite/config ;}
cfg-sudoers() { sudo vim /etc/sudoers ;}
cfg-surfraw() { vim ~/.surfraw.conf ;}
cfg-tmux() { vim ~/.tmux.conf ;}
cfg-torrentflix() { torrentflix --config=vim ;}
cfg-tpb() { vim ~/.scripts/tpb.sh ;}
cfg-trz() { vim ~/.scripts/trz.sh ;}
cfg-upxarch() { vim /usr/local/bin/upxarch ;}
cfg-urlview() { vim ~/.urlview ;}
cfg-vimrc() { vim ~/.vimrc ;}
cfg-w3m() { vim ~/.w3m/config ;}
cfg-w3m-keymap() { vim ~/.w3m/keymap ;}
cfg-wegorc() { vim ~/.wegorc ;}
cfg-xinitrc() { vim ~/.xinitrc ;}
cfg-xresources() { vim ~/.Xresources ;}
cfg-zshrc() { vim ~/.zshrc ;}
#reload
rld-bashrc() { source ~/.bashrc ;}
rld-xresources() { xrdb -load ~/.Xresources ;}
rld-zshrc() { source ~/.zshrc ;}
rld-tmux() { source ~/.tmux.conf ;}
rld-font() { fc-cache -v -f ;}
#}}}
#
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░ ░░ ░░░░░ ░░░░░░
# ███╗ ██╗███████╗██╗ ██╗███████╗██████╗ ███████╗██╗ ██╗████████╗███████╗██████╗
# ████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██║╚══██╔══╝██╔════╝██╔══██╗
# ██╔██╗ ██║█████╗ ██║ █╗ ██║███████╗██████╔╝█████╗ ██║ ██║ ██║ █████╗ ██████╔╝
# ██║╚██╗██║██╔══╝ ██║███╗██║╚════██║██╔══██╗██╔══╝ ██║ ██║ ██║ ██╔══╝ ██╔══██╗
# ██║ ╚████║███████╗╚███╔███╔╝███████║██████╔╝███████╗╚██████╔╝ ██║ ███████╗██║ ██║
# ╚═╝ ╚═══╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░ ░░ ░░░░░ ░░░░░░
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓ #░░░░░░░░░░
article-sort-order desc
auto-reload no
#browser firefox %u
browser ~/.config/piper
confirm-exit no
max-items 100
notify-program "/usr/bin/notify-send -h string:bgcolor:#000000 -h string:fgcolor:#46db18 -i ~/.icons/48arch.png 'Newsbeuter' -h string:fgcolor:#db18c9"
reload-threads 3
reload-time 0
save-path ~/.newsbeuter/saved_articles
show-read-articles no
show-read-feeds no
color listfocus red default blink
color info red default bold
#highlight all "Linux" yellow black blink
#download-full-page yes
notify-always yes
#mark-as-read-on-hover yes
always-display-description true
bookmark-cmd /home/cirrus/scripts/newsbeuter_bookmarks_surfraw.sh
#
#-------- macros {{{
#------------------------------------------------------
# Note: macro prefix key ( default: , )
# open in cli web browser
# macro o set browser "$BROWSERCLI %u"; open-in-browser ; set browser "$BROWSER %u"
macro o set browser "tmux split-window && tmux send-keys '$BROWSERCLI %u && tmux kill-pane\n'"; open-in-browser ; set browser "$BROWSER %u"
# read reddit comments with rtv (reddit terminal viewer)
# macro r set browser "rtv -l %u"; open-in-browser ; set browser "$BROWSER %u"
macro r set browser "tmux split-window && tmux send-keys 'rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser "$BROWSER %u"
# add video or audio to play queue using mpv (requires: task-spooler, mpv, youtube-dl)
macro p set browser "tsp mpv --ontop --no-border --force-window --autofit=500x280 --geometry=-15-10 %u"; open-in-browser ; set browser "$BROWSER %u"
# copy url to clipboard "yank"
macro y set browser "echo -n %u | xclip -selection clipboard"; open-in-browser ; set browser "$BROWSER %u"
macro w set browser "w3m %u"; open-in-browser ; set browser "$BROWSERCLI %u"
# read saved files
# ranger: https://www.youtube.com/watch?v=qooLR8NmYKs
macro s set browser "tmux split-window && tmux send-keys 'ranger ~/.newsbeuter/saved_articles && tmux kill-pane\n'" ; open-in-browser ; set browser "$BROWSER %u"
# }}}
#
# 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 color246 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 "%-65t %?d?- %-65d&? %> %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 "%I %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
# ██████████ ████ ████ ██ ██ ██ ██
# ░░░░░██░░░ ░██░██ ██░██░██ ░██░░██ ██
# ░██ ░██░░██ ██ ░██░██ ░██ ░░██ ██
# ░██ ░██ ░░███ ░██░██ ░██ ░░███
# ░██ ░██ ░░█ ░██░██ ░██ ██░██
# ░██ ░██ ░ ░██░██ ░██ ██ ░░██
# ░██ ░██ ░██░░███████ ██ ░░██
# ░░ ░░ ░░ ░░░░░░░ ░░ ░░
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
# 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
set -g @plugin 'tmux-plugins/tmux-copycat'
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
# generalized startup stuff
#-----------------------------------------------
#set -g default-command zsh
set -g default-terminal tmux-256color
set -g automatic-rename on
set -g remain-on-exit on
set -g visual-activity on
set -g base-index 1
set -g default-command "${SHELL}"
set-option -g update-environment 'DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS'
# Mouse (tmux >= 2.1)
#-------------------------------------------------
# Allows scrolling and selecting in copy-mode
# pleb mode
set -g mouse on
#set -ag terminal-overrides ',xterm*:smcup@:rmcup@'
#set -ag terminal-override ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
set -ag terminal-overrides ",st-*:Tc"
#set -ag terminal-overrides ",xterm-termite:Tc"
set -g history-limit 10000
# Enable mouse copy-mode scrolling
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
# Enable fast scrolling with Ctrl
bind-key -T root C-WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
#bind-key -T root C-WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
#bind-key -t vi-copy C-WheelUpPane halfpage-up
#bind-key -t vi-copy C-WheelDownPane halfpage-down
# Look & Feel
#-----------------------------------------------
# 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 default
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 colour38
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 colour166
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
# urlscan as context and url view
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; \
new-window -n "urlscan" '$SHELL -c "urlscan < /tmp/tmux-buffer"'
# urlview as context and url view
bind-key U capture-pane \; save-buffer /tmp/tmux-buffer \; \
new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
#tmux-notify
#--------------------------------------------------------------
# Titles
set -g set-titles on
#set -g set-titles-string "#T"
set -g status-justify centre
set -g automatic-rename on
#tmux messages
set -g message-bg default
set -g message-fg yellow
#statusbar & external scripts
#-----------------------------------------------------
run-shell ~/scripts/tmux-open/open.tmux
run-shell ~/scripts/tmux-copycat/copycat.tmux
set -g status on
set -g status-left-length 200
set -g status-right-length 180
#set -g status-left "#(~/scripts/xarchmpdnp)"
set -g status-left " #(~/tmux-powerline/powerline.sh left)#[fg=colour25] xarch MPD: #[fg=colour255]#(~/scripts/xarchmpdnp)"
set -g status-right "#[fg=colour255]#(cat /home/cirrus/.cache/i3blocks/notification | grep BODY | cut -c 6-) #[bg=36,fg=yellow]◀ %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 'ocp-curses'
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 'wego 1'
tmux selectp -t 0
tmux split-window -v -p 25 'journalctl -f -all | ccze -A'
tmux new-window -n 'Media' 'mpsyt'
tmux split-window -h -p 40 'livestreamer-curses'
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/subscow.sh'
tmux split-window -h -p 50 '~/scripts/pms.py .pink floyd'
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 'mutt'
tmux selectp -t 1
tmux split-window -v
tmux new-window -n 'SSH' 'ssh [email protected] -p 2236'
tmux new-window -n 'OSSH' 'ssh [email protected]'
tmux selectw -t 1
tmux selectp -t 1
tmux -2 attach-session -t Tmux
Section "Monitor"
Identifier "DVI-0"
Option "Primary" "true"
Option "PreferredMode" "1920x1080"
Option "Position" "0 0"
EndSection
Section "Monitor"
Identifier "DVI-1"
Option "LeftOf" "DVI-0"
Option "PreferredMode" "1920x1080"
Option "Position" "1920 0"
EndSection
# ██
# ██
# ██████ ██████░██
# ░░░░██ ██░░░░ ░██████░
# ██ ░░█████ ░██░░░██░
# ██ ░░░░░██░██ ░██░
# ██████ ██████ ░██ ░██░
# ░░░░░░ ░░░░░░ ░░░ ░░░
#▓▓
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
#█▓▒░
#if [[ $TERM == st* || $TERM == xterm-* ]]; then
# _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
# for i in $(sed -n "$_SEDCMD" $HOME/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do
# echo -en "$i"
# done
# clear
#fi
[[ $- = *i* ]] || return
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh
#
#/mnt/INT2/downloads/dots/scripts/union_jack.rb
#toilet -f mono12 --gay --w 100 Arch
#alsi -c1=red -c2=blue -t red
#fortune | ponysay
#command cowsay -f tux $(fortune all)
#toilet -f future --metal ' arch'
#cat ~/issue
cat ~/scripts/motd
#
echo "\e[38;5;82mHello \e[38;5;198m$USER"
echo "Today is \e[31m$(date +'%a%e %b \e[1;32m%G\e[0m :\e[0;36m%T\e[0m \e[38;5;198m%p\e[0m')\e[0;51m"
echo -e "\e[0;36mPresent directory:\e[0;35m$(pwd)\e[0m"
echo "\e[0;44m \e[0;47m \e[0;46m \e[0m"
source ~/.config/alias.zsh
source ~/.config/functions.zsh
source ~/.config/command-not-found.zsh
## Powerline & oh-my-zsh config.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME=powerline
source $ZSH/oh-my-zsh.sh
POWERLINE_FULL_CURRENT_PATH=true
COMPLETION_WAITING_DOTS=true
#plugins=( git ant colorize)
DISABLE_UPDATE_PROMPT=true
DISABLE_AUTO_UPDATE=true
#
HISTFILE=~/.logs/zhistory
HISTSIZE=100000
SAVEHIST=$HISTSIZE
READNULLCMD=$PAGER
#
export BROWSER=firefox
## Menu completion
zstyle ':completion:*' menu select
zstyle ':completion:*' use-cache on
zstyle ':completion:*' rehash yes
#
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_NO_STORE
setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_NO_DUPS
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FIND_NO_DUPS
setopt HIST_VERIFY
setopt SHARE_HISTORY
setopt INTERACTIVE_COMMENTS # pound sign in interactive prompt
setopt AUTO_CD # instead of 'cd folder' if you could just type 'folder'
HISTFILE=~/.logs/zhistory # where to save zsh history
HISTSIZE=10000
SAVEHIST=10000
cfg-history() { $EDITOR $HISTFILE ;}
setopt extendedglob
unsetopt caseglob
# show vim status
#
# add missing vim hotkeys
# fixes backspace deletion issues
bindkey -a u undo
# bindkey -a '^R' redo # conflicts with history search hotkey
bindkey -a '^T' redo
bindkey '^?' backward-delete-char #backspace
# history search in vim mode
bindkey -M viins '^r' history-incremental-search-backward
bindkey -M vicmd '^r' history-incremental-search-backward
autoload -U compinit && compinit # enable autocompletion
fpath+=(~/.zsh_completion) # set path to custom autocompletion
zstyle ':completion:*' menu select # to activate the menu, press tab twice
unsetopt menu_complete # do not autoselect the first completion entry
setopt completealiases # autocompletion CLI switches for aliases
zstyle ':completion:*' list-colors '' # show colors on menu completion
# http://unix.stackexchange.com/a/297000
setopt complete_in_word # tab completion from both ends
setopt glob_complete # wildcard completion eg. *-tar
# setopt auto_menu # show completion menu on succesive tab press
# setopt always_to_end
##Base16 Shell Themes
#BASE16_SHELL=$HOME/.config/base16-shell/
#[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/#profile_helper.sh)"
# autocomplete case-insensitive (all),partial-word and then substring
zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# better completion for killall
zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd'
# when new programs is installed, auto update autocomplete without reloading shell
zstyle ':completion:*' rehash true
#
## jump around
. /home/cirrus/scripts/z/z.sh
#
#
## define path
PATH=/home/cirrus/.gem/ruby/2.4.0/bin:/home/cirrus/.bin:/usr/lib/surfraw:/usr/lib/cw:$PATH
## needs to be at the bottom, or completion will break highlighting.
source /home/cirrus/scripts/cc.zsh
source /home/cirrus/scripts/zsh-syntax-highlighting-filetypes.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@roarc0
Copy link

roarc0 commented Apr 17, 2015

this is the holy grail, thanks!

@shellkr
Copy link

shellkr commented Apr 18, 2015

Yeah, a really nice one ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment