long time no commit

This commit is contained in:
Simonas Narbutas
2019-10-28 09:22:11 +01:00
parent 84c6f841ce
commit 8c78170a3a
11 changed files with 2102 additions and 13 deletions

View File

@@ -23,11 +23,11 @@ bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c
set -g status-position bottom set -g status-position bottom
set -g status-bg black set -g status-bg black
set -g status-fg white set -g status-fg white
set -g window-status-current-bg black #set -g window-status-current-bg black
set -g window-status-current-fg colour46 #set -g window-status-current-fg colour46
set -g window-status-current-attr bold #set -g window-status-current-attr bold
set -g status-interval 60 set -g status-interval 60
set -g status-left ' ★ ' set -g status-left ' ★ '
set -g status-right-length 30 set -g status-right-length 30
set -g status-right-attr bright #set -g status-right-attr bright
set -g status-right '%a %b %0d' set -g status-right '%a %b %0d'

2
.vimrc
View File

@@ -28,7 +28,7 @@ set visualbell " Use visual bell instead of a beep
set ttyfast " Let vim know we have a fast terminal, regardless of $TERM set ttyfast " Let vim know we have a fast terminal, regardless of $TERM
set encoding=utf-8 " Set default file encoding to utf-8 set encoding=utf-8 " Set default file encoding to utf-8
set paste " Set paste on set nopaste " Set paste off
"colorscheme solarized " Use solarized color scheme "colorscheme solarized " Use solarized color scheme
set background=dark " With a dark background set background=dark " With a dark background
syntax on " Enable/Disable syntax highlighting syntax on " Enable/Disable syntax highlighting

View File

@@ -45,7 +45,7 @@ end
-- {{{ Variable definitions -- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
beautiful.wallpaper = "/home/snarbutas/Pictures/pineapple_wp.jpg" beautiful.wallpaper = "/home/snarbutas/Pictures/wallpaper1.jpg"
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "termite" terminal = "termite"
editor = os.getenv("EDITOR") or "nano" editor = os.getenv("EDITOR") or "nano"
@@ -133,7 +133,7 @@ local cal_notification
mytextclock:connect_signal("button::release", mytextclock:connect_signal("button::release",
function() function()
if cal_notification == nil then if cal_notification == nil then
awful.spawn.easy_async([[zsh -c "cal -3 -m --color=always |sed 's#\x1B\[7m\([ 0-9]\+\)\x1B\[27m#<span foreground=\"red\"><b>\1</b></span>#'"]], awful.spawn.easy_async([[bash -c "cal -3 -m --color=always |sed 's#\x1B\[7m\([ 0-9]\+\)\x1B\[27m#<span foreground=\"red\"><b>\1</b></span>#'"]],
function(stdout, stderr, reason, exit_code) function(stdout, stderr, reason, exit_code)
cal_notification = naughty.notify{ cal_notification = naughty.notify{
text = stdout, text = stdout,
@@ -230,7 +230,7 @@ awful.screen.connect_for_each_screen(function(s)
set_wallpaper(s) set_wallpaper(s)
-- Each screen has its own tag table. -- Each screen has its own tag table.
awful.tag({ "hipc", "web", "hiera", "gimp", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1]) awful.tag({ "termite", "web", "code", "gimp", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen -- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt() s.mypromptbox = awful.widget.prompt()
@@ -436,7 +436,7 @@ globalkeys = gears.table.join(
end), end),
awful.key({ "Control", "Mod4" }, "s", awful.key({ "Control", "Mod4" }, "s",
function () function ()
awful.util.spawn_with_shell("sleep .1 && scrot -s '%d-%m-%y_%H_%M_scrot.png' -e 'mv $f ~/Pictures/scrots/'", naughty.notify {text = "scrot complete", timeout = 0.5, bg = "#ad11c7"}) awful.util.spawn_with_shell("sleep 0.5 && scrotty", naughty.notify {title = "scrot complete", timeout = 0.5, bg = "#ad11c7"})
end), end),
awful.key({ modkey, "Control" }, "n", awful.key({ modkey, "Control" }, "n",

View File

@@ -1,4 +1,4 @@
xss-lock -- i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png & xss-lock -- i3lock -c 000000 -i /home/snarbutas/Pictures/texture1_1.png -t -e &
xmodmap ~/.Xmodmap 2>~/.Xmodlog xmodmap ~/.Xmodmap 2>~/.Xmodlog
ssh-agent -s > ~/.ssh/agent ssh-agent -s > ~/.ssh/agent
exec awesome exec awesome

View File

@@ -3,4 +3,7 @@ for dir in /usr/bin /usr/sbin /sbin /bin /home/snarbutas/.bin; do
PATH="${dir}:${PATH}" PATH="${dir}:${PATH}"
fi fi
done done
if [ -f ~/.config/exercism/exercism_completion.zsh ]; then
source ~/.config/exercism/exercism_completion.zsh
fi
export PATH export PATH

View File

@@ -70,7 +70,6 @@ cdpath=(
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias simit='gopass bolcom/dc/snarbutas |kinit -p snarbutas@BOLCOM.NET'
## Add pastebin support ## Add pastebin support
function Paste { curl -s -d "content='$(cat ${1})'&expire=6h" -o/dev/null -w "%{redirect_url}\n" http://go-paste.service.local:8080/; } function Paste { curl -s -d "content='$(cat ${1})'&expire=6h" -o/dev/null -w "%{redirect_url}\n" http://go-paste.service.local:8080/; }

File diff suppressed because it is too large Load Diff

134
.yadm/alt/codeshell/.zshrc Normal file
View File

@@ -0,0 +1,134 @@
### =============== Git prompt ================ ###
source "/home/snarbutas/.zsh-git-prompt/zshrc.sh"
ZSH_THEME_GIT_PROMPT_BRANCH="%{\x1b[3m%}%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}%{¤%G%}"
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[blue]%}%{x%G%}"
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[red]%}%{+%G%}"
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[red]%}%{↓%G%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%}%{↑%G%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[red]%}%{…%G%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}%{✔%G%}"
### =============== Git prompt ================ ###
## Enable completion
zstyle ':completion:*' completer _complete _ignored
zstyle ':completion:*' menu select
setopt completealiases
autoload -Uz compinit
compinit
## Enable ANSI colors
autoload -U color
## Set various options
setopt appendhistory nomatch notify
unsetopt autocd beep extendedglob
bindkey -e
## History
setopt HIST_IGNORE_DUPS
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
## Automatically fix terminal settings
ttyctl -f
stty -ixon -ixoff
## Set a nice prompt
PROMPT='%F{red}[%F{blue}%*%F{red}]%f %F{yellow}bosman%f %F{magenta}[%f%B%F{magenta}%1~%f%b%F{magenta}]%f %(!.%F{red}.%F{green})≫ %f$(git_super_status) '
#RPROMPT=$'%F{cyan}%*%f'
## Set a nice remote prompt
YELLOW="\[\033[38;5;3m\]"
BLUE="\[\033[38;5;4m\]"
ORANGE="\[\033[38;5;202m\]"
MAGENTA="\[\033[38;5;6m\]"
GREEN="\[\033[38;5;41m\]"
NOCOLOR="\[\033[0m\]"
BOL_FANCYPROMPT="${ORANGE}[${BLUE}\t${ORANGE}] ${YELLOW}\h ${MAGENTA}\W ${GREEN}${NOCOLOR} "
export BOL_FANCYPROMPT
## Enable colors
LESS='-R'
LESSOPEN='|~/.lessfilter %s'
## Setup editor and pager variables
PAGER="less"
EDITOR="nvim"
VISUAL="${EDITOR}"
#TERM="xterm-termite"
export PAGER EDITOR VISUAL
## Setup the CDPATH with interesting directories
typeset -U path cdpath fpath
cdpath=(
.
~/vagrant
)
eval "$(rbenv init -)"
alias ll='ls -ltrh'
alias cat='bat'
alias vi='nvim'
# create a zkbd compatible hash;
# to add other keys to this hash, see: man 5 terminfo
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Insert]=${terminfo[kich1]}
key[Delete]=${terminfo[kdch1]}
key[Up]=${terminfo[kcuu1]}
key[Down]=${terminfo[kcud1]}
key[Left]=${terminfo[kcub1]}
key[Right]=${terminfo[kcuf1]}
key[PageUp]=${terminfo[kpp]}
key[PageDown]=${terminfo[knp]}
# setup key accordingly
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
# ssh, scp, ping, host
zstyle ':completion:*:scp:*' tag-order \
'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *'
zstyle ':completion:*:scp:*' group-order \
users files all-files hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order \
users 'hosts:-host hosts:-domain:domain hosts:-ipaddr:IP\ address *'
zstyle ':completion:*:ssh:*' group-order \
hosts-domain hosts-host users hosts-ipaddr
zstyle ':completion:*:(ssh|scp):*:hosts-host' ignored-patterns \
'*.*' loopback localhost
zstyle ':completion:*:(ssh|scp):*:hosts-domain' ignored-patterns \
'<->.<->.<->.<->' '^*.*' '*@*'
zstyle ':completion:*:(ssh|scp):*:hosts-ipaddr' ignored-patterns \
'^<->.<->.<->.<->' '127.0.0.<->'
zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns \
adm bin daemon halt lp named shutdown sync
zstyle -e ':completion:*:(ssh|scp):*' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) \
/dev/null)"}%%[# ]*}//,/ }
${=${(f)"$(cat /etc/hosts(|)(N) <<(ypcat hosts 2>/dev/null))"}%%\#*}
${=${${${${(@M)${(f)"$(<~/.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}}
)'
bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
# The next line updates PATH for the Google Cloud SDK.
if [ -f /opt/google-cloud-sdk/path.zsh.inc ]; then
source '/opt/google-cloud-sdk/path.zsh.inc'
fi
source ~/.zsh.d/11-go.zsh

View File

@@ -1,4 +1,6 @@
if which go 2>&1 > /dev/null; then if which go 2>&1 > /dev/null; then
export GOPATH=~/Documents/dev/go export GOPATH=~/development/go
export PATH=${PATH}:${GOPATH}/bin export PATH=${PATH}:${GOPATH}/bin
fi fi
export SPOTIFY_CLIENT=a9138a6b1082438fa196221f9da72617
export SPOTIFY_SECRET=1c6ea12d0ba7455a9de42c693c77bc47

View File

@@ -1,4 +1,4 @@
if [[ "$TERM" == screen-256color ]] || [[ -n "$TMUX" ]] || [[ "${TERM_PROGRAM}" == "code" ]]; then if [[ "$TERM" == screen-256color ]] || [[ -n "$TMUX" ]] || [[ "${TERM_PROGRAM}" == "vscode" ]]; then
return 1 return 1
fi fi

2
.zsh.d/50-env.zsh Normal file
View File

@@ -0,0 +1,2 @@
export BAT_THEME="dark_neon"
#export BAT_THEME="Monokai Extended"