-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dd2b31f
Showing
9 changed files
with
843 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# ~/.bashrc: executed by bash(1) for non-login shells. | ||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | ||
# for examples | ||
|
||
# If not running interactively, don't do anything | ||
case $- in | ||
*i*) ;; | ||
*) return;; | ||
esac | ||
|
||
# don't put duplicate lines or lines starting with space in the history. | ||
# See bash(1) for more options | ||
HISTCONTROL=ignoreboth | ||
|
||
# append to the history file, don't overwrite it | ||
shopt -s histappend | ||
|
||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | ||
HISTSIZE=-1 #1000 | ||
HISTFILESIZE=-1 #2000 | ||
|
||
# check the window size after each command and, if necessary, | ||
# update the values of LINES and COLUMNS. | ||
shopt -s checkwinsize | ||
|
||
# If set, the pattern "**" used in a pathname expansion context will | ||
# match all files and zero or more directories and subdirectories. | ||
#shopt -s globstar | ||
|
||
# make less more friendly for non-text input files, see lesspipe(1) | ||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | ||
|
||
# set variable identifying the chroot you work in (used in the prompt below) | ||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then | ||
debian_chroot=$(cat /etc/debian_chroot) | ||
fi | ||
|
||
# set a fancy prompt (non-color, unless we know we "want" color) | ||
case "$TERM" in | ||
xterm-color|*-256color|screen) color_prompt=yes;; | ||
esac | ||
|
||
# uncomment for a colored prompt, if the terminal has the capability; turned | ||
# off by default to not distract the user: the focus in a terminal window | ||
# should be on the output of commands, not on the prompt | ||
force_color_prompt=yes | ||
|
||
if [ -n "$force_color_prompt" ]; then | ||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | ||
# We have color support; assume it's compliant with Ecma-48 | ||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such | ||
# a case would tend to support setf rather than setaf.) | ||
color_prompt=yes | ||
else | ||
color_prompt= | ||
fi | ||
fi | ||
|
||
if [ "$color_prompt" = yes ]; then | ||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | ||
else | ||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | ||
fi | ||
unset color_prompt force_color_prompt | ||
|
||
# If this is an xterm set the title to user@host:dir | ||
case "$TERM" in | ||
xterm*|rxvt*) | ||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" | ||
;; | ||
*) | ||
;; | ||
esac | ||
|
||
# enable color support of ls and also add handy aliases | ||
if [ -x /usr/bin/dircolors ]; then | ||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | ||
alias ls='ls --color=auto' | ||
#alias dir='dir --color=auto' | ||
#alias vdir='vdir --color=auto' | ||
|
||
alias grep='grep --color=auto' | ||
alias fgrep='fgrep --color=auto' | ||
alias egrep='egrep --color=auto' | ||
fi | ||
|
||
# colored GCC warnings and errors | ||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | ||
|
||
# some more ls aliases | ||
alias ll='ls -alF' | ||
alias la='ls -A' | ||
alias l='ls -CF' | ||
alias lh='ls -lh' | ||
|
||
alias ..='cd ..' | ||
|
||
# Add an "alert" alias for long running commands. Use like so: | ||
# sleep 10; alert | ||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | ||
|
||
# Alias definitions. | ||
# You may want to put all your additions into a separate file like | ||
# ~/.bash_aliases, instead of adding them here directly. | ||
# See /usr/share/doc/bash-doc/examples in the bash-doc package. | ||
|
||
if [ -f ~/.bash_aliases ]; then | ||
. ~/.bash_aliases | ||
fi | ||
|
||
export EDITOR="vim" | ||
export VISUAL="$EDITOR" | ||
|
||
# enable programmable completion features (you don't need to enable | ||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | ||
# sources /etc/bash.bashrc). | ||
if ! shopt -oq posix; then | ||
if [ -f /usr/share/bash-completion/bash_completion ]; then | ||
. /usr/share/bash-completion/bash_completion | ||
elif [ -f /etc/bash_completion ]; then | ||
. /etc/bash_completion | ||
fi | ||
fi | ||
|
||
# Use the Git Bash extension | ||
GIT_PROMPT_ONLY_IN_REPO=1 | ||
GIT_PROMPT_FETCH_REMOTE_STATUS=0 | ||
GIT_PROMPT_SHOW_UPSTREAM=0 | ||
GIT_PROMPT_SHOW_UNTRACKED_FILES=no | ||
#GIT_PROMPT_THEME=TruncatedPwd_WindowTitle_Ubuntu | ||
source ~/.bash-git-prompt/gitprompt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
alignment top_right | ||
#border_margin 9 | ||
border_width 10 | ||
default_color white | ||
double_buffer yes | ||
draw_shades no | ||
draw_outline no | ||
draw_borders no | ||
font arial | ||
gap_x 5 | ||
gap_y 5 | ||
maximum_width 300 | ||
own_window yes | ||
own_window_type override | ||
own_window_colour brown | ||
own_window_transparent yes | ||
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager | ||
stippled_borders 3 | ||
use_spacer yes | ||
use_xft yes | ||
update_interval 1.0 | ||
uppercase no | ||
|
||
TEXT | ||
${color #000000} | ||
|
||
${font Purisa:style=Bold:size=12}SYSTEM INFORMATION ${font PizzaDude Bullets:size=8}${hr 2}${color #000000} | ||
$nodename $sysname $kernel on $machine | ||
${font PizzaDude Bullets:size=12} | ||
|
||
${font Aerial :style=Bold:size=8}Processor:${font Snap.se:size=8} ${color #000000} ${if_match ${cpu} <= 20}${cpu}%${else}${if_match ${cpu} <= 40}${cpu}%${else}${if_match ${cpu} <= 60}${cpu}%${else}${if_match ${cpu} <= 80}${cpu}%${else}${if_match ${cpu} <= 100}${cpu}%${else}${endif}${endif}${endif}${endif}${endif}${font Aerial :size=8} ${hr 2}${color #000000} | ||
${alignc}${freq}MHz Load: ${loadavg} Temp: ${acpitemp} | ||
$cpubar | ||
${cpugraph 000000 000000} | ||
NAME${goto 130}PID${goto 175}CPU%${goto 225}MEM% | ||
${top name 1}${goto 120}${top pid 1}${goto 170}${top cpu 1}${goto 220}${top mem 1} | ||
${top name 2}${goto 120}${top pid 2}${goto 170}${top cpu 2}${goto 220}${top mem 2} | ||
${top name 3}${goto 120}${top pid 3}${goto 170}${top cpu 3}${goto 220}${top mem 3} | ||
|
||
## MEMORY AND SWAP ## | ||
${font Aerial :style=Bold:size=8}Memory:${font Snap.se:size=8} ${color #000000} ${if_match ${memperc} <= 20}${memperc}%${else}${if_match ${memperc} <= 40}${memperc}%${else}${if_match ${memperc} <= 60}${memperc}%${else}${if_match ${memperc} <= 80}${memperc}%${else}${if_match ${memperc} <= 100}${memperc}%${else}${endif}${endif}${endif}${endif}${endif}${font Aerial :size=8} ${hr 2}${color #000000} | ||
# | ||
RAM: ${if_match ${memperc} <= 10}${mem}${else}${if_match ${memperc} <= 20}${mem}${else}${if_match ${memperc} <= 30}${mem}${else}${if_match ${memperc} <= 40}${mem}${else}${if_match ${memperc} <= 50}${mem}${else}${if_match ${memperc} <= 60}${mem}${else}${if_match ${memperc} <= 70}${mem}${else}${if_match ${memperc} <= 80}${mem}${else}${if_match ${memperc} <= 90}${mem}${else}${if_match ${memperc} <= 100}${mem}${else}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color #000000} ${membar 6}${color #000000} | ||
# | ||
Swap: ${if_match ${swapperc} <= 10}${swap}${else}${if_match ${swapperc} <= 20}${swap}${else}${if_match ${swapperc} <= 30}${swap}${else}${if_match ${swapperc} <= 40}${swap}${else}${if_match ${swapperc} <= 50}${swap}${else}${if_match ${swapperc} <= 60}${swap}${else}${if_match ${swapperc} <= 70}${swap}${else}${if_match ${swapperc} <= 80}${swap}${else}${if_match ${swapperc} <= 90}${swap}${else}${if_match ${swapperc} <= 100}${swap}${else}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color #000000} ${swapbar 6}${color #000000} | ||
|
||
## STORAGE INFO ## | ||
${font Aerial :style=Bold:size=8}Storage ${font Aerial :size=8} ${hr 2}${color #000000} | ||
${execp df -h | grep "/dev/sd" | awk '{ printf "%s: ${fs_used_perc %s}%% ${fs_bar %s}\n", $6, $6, $6}' } | ||
Throughput: ${diskio} | ||
${diskiograph} | ||
|
||
## NETWORK ## | ||
${font Aerial :style=Bold:size=8}Network (${addr eth0}) ${font Aerial :size=8} ${hr 2}${color #000000} | ||
Down: ${color #000000}${downspeed eth0}/s ${alignr}Up: ${upspeed eth0}/s | ||
${downspeedgraph eth0 25,140 000000 000000} ${alignr}${upspeedgraph eth0 | ||
25,140 000000 000000}${color #000000} | ||
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0} | ||
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 | ||
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count} | ||
|
||
## TIME ## | ||
${font Purisa :style=Bold:size=12}Time ${font Aerial :size=8}${hr 2}${color #000000} | ||
${alignc}${time %k:%M:%S} | ||
${alignc}${time %B %d %A} | ||
${font Purisa :style=Bold:size=12}Uptime ${font Aerial :size=8}${hr 2}${color #000000} | ||
${alignc}${uptime} | ||
|
||
## SHOW MUSIC DATA FROM RHYTHMBOX ## | ||
${if_running rhythmbox}${color #000000}${font Purisa :style=Bold:size=12}Music ${font Aerial :size=8}${hr 2}${color #000000} | ||
# | ||
${goto 40}${font Aerial :style=Bold:size=8}Artist: ${font Aerial :size=8}${color #000000}${exec rhythmbox-client --no-start --print-playing-format %aa} | ||
# | ||
${goto 40}${font Aerial :style=Bold:size=8}Title: ${font Aerial :size=8}${color #000000}${exec rhythmbox-client --no-start --print-playing-format %tt} | ||
# | ||
${goto 40}${font Aerial :style=Bold:size=8}Album: ${font Aerial :size=8}${color #000000}${exec rhythmbox-client --no-start --print-playing-format %at} | ||
${endif} | ||
# | ||
# | ||
## SHOW MOVIE TEXT IF TOTEM IS RUNNING ## | ||
${if_running totem}${color #000000}${font Purisa :style=Bold:size=12}Movie ${font Aerial :size=8}${hr 2}${color #000000} | ||
# | ||
${goto 40}${font Aerial :size=8}${color #000000}Movie info unaviable | ||
${endif} | ||
# | ||
## TV GUIDE ## | ||
${font Purisa :style=Bold:size=12}TV Guide ${font Aerial :size=8}${hr 2}${color #000000} | ||
${font Aerial :style=Bold:size=8}RTL Klub | ||
${font Aerial :size=8}${rss http://tv.animare.hu/rssfeed.aspx?tartalom=aktualistvmusor&tvcsatorna=5 2 item_titles 2} | ||
|
||
${font Aerial :style=Bold:size=8}Cool | ||
${font Aerial :size=8}${rss http://tv.animare.hu/rssfeed.aspx?tartalom=aktualistvmusor&tvcsatorna=28 2 item_titles 2} | ||
|
||
${font Aerial :style=Bold:size=8}AXN | ||
${font Aerial :size=8}${rss http://tv.animare.hu/rssfeed.aspx?tartalom=aktualistvmusor&tvcsatorna=27 2 item_titles 2} | ||
|
||
${font Aerial :style=Bold:size=8}Discovery Channel | ||
${font Aerial :size=8}${rss http://tv.animare.hu/rssfeed.aspx?tartalom=aktualistvmusor&tvcsatorna=32 2 item_titles 2} | ||
|
||
## LAST LOGS ## | ||
#${font Purisa :style=Bold:size=12}Logs ${font Aerial :size=8}${hr 2}${color #000000} | ||
#${execi 30 tail -n1 /var/log/messages | fold -w50} | ||
# | ||
## FORTUNE COOKIE ## | ||
${font Purisa :style=Bold:size=12}Fortune cookie ${font Aerial :size=8}${hr 2}${color #000000} | ||
${execi 30 fortune -s | fold -w50} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[user] | ||
name = Git User Please set | ||
email = git.user@please.set | ||
[core] | ||
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | ||
editor = vim | ||
[color] | ||
ui = true | ||
[color "branch"] | ||
current = yellow reverse | ||
local = yellow | ||
remote = green | ||
[color "diff"] | ||
meta = yellow bold | ||
frag = magenta bold | ||
old = red bold | ||
new = green bold | ||
whitespace = red reverse | ||
[color "status"] | ||
added = yellow | ||
changed = green | ||
untracked = cyan | ||
[alias] | ||
st = status | ||
ci = commit | ||
br = branch | ||
bra = branch -vva | ||
co = checkout | ||
df = diff --stat --patch --raw | ||
dc = diff --cached --stat --patch --raw | ||
lg = log -p | ||
lol = log --graph --decorate --pretty=oneline --abbrev-commit | ||
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | ||
log2 = log --graph --decorate --pretty=format:'------------------------------%n[%C(magenta)%h%Creset] %C(yellow)%cn <%ce>%Creset %C(cyan)%d%Creset %n%cd %n%Cgreen%s%Creset%n------------------------------' --abbrev-commit | ||
ls = ls-files | ||
ign = ls-files -o -i --exclude-standard | ||
dlog = log --graph --decorate --abbrev-commit --date=short --date-order --pretty=format:'%Cred%h %C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%ad>%Creset' | ||
clog = log --date-order --pretty=format:'<%C(cyan)%an%Creset> [%ad] (%C(yellow)%h%Creset) %s' | ||
dump = cat-file -p | ||
fall = fetch -v --all | ||
ffmerge = merge --ff-only | ||
hubclone = "!sh -c 'git clone http://github.com/$1/$2.git --origin upstream'" - | ||
hubremote-add = "!sh -c 'git remote add $1 http://github.com/$1/$2.git'" - | ||
cbr = rev-parse --abbrev-ref HEAD | ||
[gc] | ||
auto = 0 | ||
autopacklimit = 0 | ||
packrefs = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# ~/.profile: executed by the command interpreter for login shells. | ||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | ||
# exists. | ||
# see /usr/share/doc/bash/examples/startup-files for examples. | ||
# the files are located in the bash-doc package. | ||
|
||
# the default umask is set in /etc/profile; for setting the umask | ||
# for ssh logins, install and configure the libpam-umask package. | ||
#umask 022 | ||
|
||
# if running bash | ||
if [ -n "$BASH_VERSION" ]; then | ||
# include .bashrc if it exists | ||
if [ -f "$HOME/.bashrc" ]; then | ||
. "$HOME/.bashrc" | ||
fi | ||
fi | ||
|
||
export EDITOR="vim" | ||
export VISUAL="$EDITOR" | ||
|
||
# set PATH so it includes user's private bin if it exists | ||
if [ -d "$HOME/bin" ] ; then | ||
PATH="$HOME/bin:$PATH" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Host github.com | ||
HostName github.com | ||
Port 22 | ||
User git | ||
IdentityFile ~/.ssh/github_com |
Oops, something went wrong.