Divers tmux/mpc

This commit is contained in:
Meutel 2019-01-25 19:55:10 +01:00
parent 5ff4c5da67
commit 10fe3488c4
4 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,7 @@ alias ga='git-annex '
alias gas='git-annex sync ' alias gas='git-annex sync '
alias vi='vim ' alias vi='vim '
alias tmr='~/bin/tmux_rattach.sh' alias tmr='~/bin/tmux_rattach.sh'
alias mpc='mpc -f "[%artist% - %title% \[%album%\] %date%]|[%file%]"'
# envoie la playlist mpc et lit le meme morceau # envoie la playlist mpc et lit le meme morceau
function mpct() { function mpct() {
if [ $1 ] ; then if [ $1 ] ; then

View File

@ -70,6 +70,9 @@ fi
##### MISC ##### ##### MISC #####
# edit file in tmux pane
peek() { tmux split-window -p 33 "$EDITOR" "$@" || exit; }
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.
shopt -s checkwinsize shopt -s checkwinsize

View File

@ -37,7 +37,7 @@ set -g status-bg black
set -g status-fg white set -g status-fg white
set -g status-interval 5 set -g status-interval 5
set -g status-left-length 90 set -g status-left-length 90
set -g status-right-length 90 set -g status-right-length 150
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#h#[fg=white]#[fg=yellow]" set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#h#[fg=white]#[fg=yellow]"
set -g status-justify left set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=green,bg=black]#(~/bin/tmux-mem-cpu-load --colors --interval 5) #[fg=white]%a %d %b %R' set -g status-right '#[fg=Cyan]#S #[fg=green,bg=black]#(mpc -f "[%%artist%% - %%title%% \[%%album%%\] %%date%%]|[%%file%%]" current) #[fg=white]%a %d %b %R'

2
_vimrc
View File

@ -107,6 +107,8 @@ set tabstop=2
set shiftwidth=2 set shiftwidth=2
" {{{ Shortcuts " {{{ Shortcuts
" disable ex mode
nnoremap Q <Nop>
" clear search " clear search
nnoremap <Leader>c :nohl<cr> nnoremap <Leader>c :nohl<cr>
" NERdTree " NERdTree