Last active
October 27, 2016 09:20
-
-
Save rbakbashev/8685834 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
this gist contains dotfiles: .zshrc.local, .xinitrc, .conkyrc, .Xresources and .ctags | |
dwm distro: dl.dropboxusercontent.com/u/84285293/distro.tar.bz2 |
This file contains hidden or 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
conky.config = { | |
background = false, | |
out_to_console = true, | |
update_interval = 0.2, | |
total_run_times = 0, | |
use_spacer = 'none', | |
cpu_avg_samples = 1, | |
net_avg_samples = 2, | |
}; | |
conky.text = [[${downspeed wlp3s5} ${upspeed wlp3s5} ${cpu cpu0} ${cpu cpu1} ${cpu cpu2} ${cpu cpu3} ${mem} ${memperc}]] |
This file contains hidden or 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
#!/bin/sh | |
urxvtd -q -o -f | |
setxkbmap -layout us,ru -option grp:alt_shift_toggle | |
numlockx | |
# amixer -c 0 set "Master Mono" 69% unmute | |
feh --bg-fill Pictures/clouds.jpg | |
xrdb -merge .Xresources | |
xset m 0 0 | |
# requires conky-cli and xkblayout-state from AUR | |
format="%s | \x07%08s \x06%08s \x01 \x02%03s%% %03s%% %03s%% %03s%%\x01 \x05%08s %02s%%\x01 | %s\n" | |
conky -c .conkyrc | while read -r | |
do | |
layout=$(xkblayout-state print "%s") | |
date=$(date +"%T %a %d %b") | |
str=$(printf "$format" "$layout" $REPLY "$date") | |
xsetroot -name "$str" | |
done & | |
exec startlxde |
This file contains hidden or 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
urxvt*background: #002b36 | |
urxvt*foreground: #657b83 | |
urxvt*cursorColor: #93a1a1 | |
urxvt*pointerColorBackground: #586e75 | |
urxvt*pointerColorForeground: #93a1a1 | |
urxvt*color0: #073642 | |
urxvt*color1: #dc322f | |
urxvt*color2: #859900 | |
urxvt*color3: #b58900 | |
urxvt*color4: #268bd2 | |
urxvt*color5: #d33682 | |
urxvt*color6: #2aa198 | |
urxvt*color7: #eee8d5 | |
urxvt*color8: #002b36 | |
urxvt*color9: #cb4b16 | |
urxvt*color10: #586e75 | |
urxvt*color11: #657b83 | |
urxvt*color12: #839496 | |
urxvt*color13: #6c71c4 | |
urxvt*color14: #93a1a1 | |
urxvt*color15: #fdf6e3 | |
urxvt*font: xft:Meslo\ LG\ M:size=11 | |
urxvt*boldFont: xft:Meslo\ LG\ M:size=11 | |
urxvt*letterSpace: -2 | |
urxvt*geometry: 80x25 | |
urxvt*saveLines: 12000 | |
urxvt*urlLauncher: firefox | |
urxvt*scrollstyle: plain | |
urxvt*scrollBar_right: true | |
urxvt*scrollTtyOutput: false | |
urxvt*scrollWithBuffer: true | |
urxvt*scrollTtyKeypress: true | |
urxvt*jumpscroll: true | |
Xft.dpi: 91 | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
This file contains hidden or 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
# .zshrc.local | |
# This file is used together with grml-zsh's .zshrc | |
export HISTFILE=~/.zsh-history | |
export HISTSIZE=100000 | |
export SAVEHIST=$HISTSIZE | |
export MAKEFLAGS="-j4" | |
export EDITOR="vim" | |
setopt auto_cd # Change dir without cd | |
setopt complete_in_word # Not just at the end | |
setopt always_to_end # When complete from middle, move cursor | |
setopt no_match # Show error if pattern has no matches | |
setopt no_beep # Disable beeps | |
setopt list_types # Show types in completion | |
setopt hist_ignore_all_dups # Ignore duplicates in command history | |
setopt hist_ignore_space # Don't add commands preceded by whitespace to history | |
setopt hist_reduce_blanks | |
setopt append_history share_history inc_append_history | |
setopt correct # Command correction | |
alias gst='git status' | |
alias gada='git add -A' | |
alias gd='git diff --color=auto' | |
alias gcom='git commit' | |
alias gcom!='git commit --amend' | |
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all" | |
alias gp='git push -u origin master' | |
alias clear2="for i in {1..$ROWS}; do echo; done && clear" | |
alias myindent="indent -i4 -npsl -bad -bap -nbc -br -ce -cdw -bls -ncdb -ncs -nut" # sucks | |
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ruslashev/.gem/ruby/2.0.0/bin:/opt/android-sdk/build-tools:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/home/ruslashev/Things/srchack:/home/ruslashev/.rvm/bin:/home/ruslashev/.cabal/bin | |
[[ -s ~/todo ]] && awk 'BEGIN { print "To do:" } { print NR ") " $0 }' ~/todo | |
set -o vi | |
# Prompt ####################################################################### | |
prompt off | |
local user_color="green"; [ $UID -eq 0 ] && user_color="red" | |
local user="%{$fg_bold[$user_color]%}%n%{$reset_color%}" | |
local dir="%{$fg_bold[blue]%}%1~%{$reset_color%}" | |
# ▶ | |
PROMPT="$user $dir %{$fg_bold[$user_color]%}≻%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%}+" | |
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[blue]%}*" | |
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%}-" | |
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg_bold[yellow]%}#" | |
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[magenta]%}R" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%}?" | |
function git_get_branch() { | |
git symbolic-ref HEAD 2> /dev/null | sed 's|refs/heads/||' | |
} | |
function git_prompt_status() { | |
INDEX=$(command git status --porcelain -b 2> /dev/null) | |
STATUS="" | |
if $(echo "$INDEX" | grep -E '^\?\? ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS" | |
fi | |
if $(echo "$INDEX" | grep '^A ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS" | |
elif $(echo "$INDEX" | grep '^M ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS" | |
fi | |
if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" | |
elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" | |
elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" | |
fi | |
if $(echo "$INDEX" | grep '^R ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS" | |
fi | |
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" | |
elif $(echo "$INDEX" | grep '^D ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" | |
elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" | |
fi | |
if $(command git rev-parse --verify refs/stash >/dev/null 2>&1); then | |
STATUS="$ZSH_THEME_GIT_PROMPT_STASHED$STATUS" | |
fi | |
echo $STATUS | |
} | |
function precmd { | |
local return_code="%{$fg_bold[red]%}%(?..%? ↵)%{$reset_color%} " | |
local fromvim="" | |
if [[ $FROMVIM -eq 1 ]] fromvim="%{$fg[green]%}Vim%{$reset_color%} " | |
local gitness="" | |
[[ "$(git rev-parse --is-inside-work-tree 2> /dev/null)" = "true" ]] && | |
gitness="$(git_get_branch)$(git_prompt_status)%{$reset_color%}" | |
RPROMPT="${return_code}${fromvim}${gitness}" | |
} | |
function mdd() { | |
mkdir -p $1 && cd $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment