Skip to content

Commit 60d60e6

Browse files
committed
Add ncmpcpp, mps-youtube and config tmux border, vim airline, zsh alias
Add vim-surround, vim-repeat
1 parent 77aa280 commit 60d60e6

File tree

10 files changed

+159
-5
lines changed

10 files changed

+159
-5
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
vim/plugged
22
.directory
3+
4+
mpd/*
5+
!mpd/mpd.conf
6+
7+
ncmpcpp/*
8+
!ncmpcpp/config
9+
!ncmpcpp/bindings

init-app/mps-youtube.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# mpsyoutube
2+
sudo apt install python3-pip mpv
3+
sudo apt remove youtube-dl
4+
5+
pip3 install --user mps-youtube --upgrade
6+
pip3 install --user youtube-dl --upgrade

init-app/ncmpcpp.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ncmpcpp
2+
sudo apt install ncmpcpp mpd
3+
4+
ln -s -f ~/dotfiles/mpd ~/.config/mpd
5+
ln -s -f ~/dotfiles/ncmpcpp ~/.config/ncmpcpp
6+

mpd/mpd.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
music_directory "~/Dropbox/Musics"
2+
playlist_directory "~/.config/mpd/playlists"
3+
db_file "~/.config/mpd/mpd.db"
4+
log_file "~/.config/mpd/mpd.log"
5+
pid_file "~/.config/mpd/mpd.pid"
6+
state_file "~/.config/mpd/mpdstate"
7+
8+
audio_output {
9+
type "pulse"
10+
name "pulse audio"
11+
12+
}
13+
14+
audio_output {
15+
type "fifo"
16+
name "my_fifo"
17+
path "/tmp/mpd.fifo"
18+
format "44100:16:2"
19+
20+
}
21+
22+
bind_to_address "127.0.0.1"
23+
port "6600"
24+
auto_update "yes"

ncmpcpp/bindings

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
def_key "j"
2+
scroll_down
3+
def_key "k"
4+
scroll_up
5+
6+
def_key "ctrl-u"
7+
page_up
8+
#push_characters "kkkkkkkkkkkkkkk"
9+
def_key "ctrl-d"
10+
page_down
11+
#push_characters "jjjjjjjjjjjjjjj"
12+
13+
def_key "l"
14+
seek_forward
15+
def_key "h"
16+
seek_backward
17+
18+
def_key "n"
19+
next_found_item
20+
def_key "N"
21+
previous_found_item
22+
23+
def_key "H"
24+
previous_column
25+
def_key "L"
26+
next_column
27+
28+
# not used but bound
29+
def_key "J"
30+
move_sort_order_down
31+
def_key "K"
32+
move_sort_order_up

ncmpcpp/config

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Files
2+
mpd_music_dir = "~/Dropbox/Musics"
3+
lyrics_directory = ~/.config/ncmpcpp/lyrics
4+
ncmpcpp_directory = ~/.config/ncmpcpp
5+
mpd_host = "localhost"
6+
mpd_port = "6600"
7+
mpd_connection_timeout = "5"
8+
external_editor = "/usr/bin/vim"
9+
10+
# █▓▒░ Visualizer
11+
visualizer_look = "▒░"
12+
visualizer_color = "cyan"
13+
visualizer_in_stereo = "yes"
14+
visualizer_fifo_path = "~/.mpd/mpd.fifo"
15+
visualizer_sync_interval = "10"
16+
visualizer_output_name = "mpd spectrum"
17+
18+
# █▓▒░ Display Settings
19+
song_list_format = "{$5%t $6> $7%a} {$6$R$b} [{%l}]"
20+
song_status_format = "$7%a $6$b> $5%t $6$b> $2%b$6"
21+
statusbar_color = "white"
22+
main_window_color = "cyan"
23+
main_window_highlight_color = "magenta"
24+
active_column_color = "black"
25+
header_visibility = "no"
26+
statusbar_visibility = "yes"
27+
colors_enabled = "yes"
28+
now_playing_prefix = "> "
29+
#now_playing_suffix = ""
30+
autocenter_mode = "yes"
31+
centered_cursor = "yes"
32+
progressbar_color = "black"
33+
progressbar_elapsed_color = "yellow"
34+
progressbar_look = "▒▓░"
35+
titles_visibility = "no"
36+
mouse_support = "no"
37+
discard_colors_if_item_is_selected = "yes"
38+
user_interface = "classic"
39+
playlist_display_mode = "classic"
40+
41+
# █▓▒░ cheat sheet
42+
# %l - length
43+
# %f - filename
44+
# %D - directory
45+
# %a - artist
46+
# %t - title
47+
# %b - album
48+
# %y - year
49+
# %n - track number (01/12 -> 01)
50+
# %N - full track info (01/12 -> 01/12)
51+
# %g - genre
52+
# %c - composer
53+
# %p - performer
54+
# %d - disc
55+
# %C - comment
56+
# $R - begin right alignment
57+
# █▓▒░ colors
58+
# $0 - default window color
59+
# $1 - black
60+
# $2 - red
61+
# $3 - green
62+
# $4 - yellow
63+
# $5 - blue
64+
# $6 - magenta
65+
# $7 - cyan
66+
# $8 - white
67+
# $9 - end of current color

setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ ln -s -f ~/dotfiles/zshrc ~/.zshrc
22
ln -s -f ~/dotfiles/tmux.conf ~/.tmux.conf
33
rm -rf ~/.vim
44
ln -s -f ~/dotfiles/vim/ ~/.vim
5+
# Install Plugins Vim
6+
vim +PlugInstall +qall

tmux.conf.gruvbox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg
1515
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
1616

1717
# pane border
18-
set-option -g pane-active-border-style fg=colour250 #fg2
19-
set-option -g pane-border-style fg=colour237 #bg1
18+
set-option -g pane-active-border-style fg=colour114 #fg2
19+
set-option -g pane-border-style fg=colour240 #bg1
2020

2121
# message infos
2222
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1

vim/vimrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ Plug 'ctrlpvim/ctrlp.vim'
9191
Plug 'christoomey/vim-tmux-navigator'
9292
Plug 'tpope/vim-fugitive'
9393
Plug 'tpope/vim-commentary'
94+
Plug 'tpope/vim-surround'
95+
Plug 'tpope/vim-repeat'
9496
Plug 'neoclide/coc.nvim', {'branch': 'release'}
9597
Plug 'honza/vim-snippets'
9698
Plug 'SirVer/ultisnips'
@@ -122,7 +124,11 @@ set background=dark
122124
" Airline config
123125
let g:airline#extensions#tabline#enabled = 1
124126
let g:airline_theme='deus'
125-
let g:airline_powerline_fonts = 1
127+
" let g:airline_powerline_fonts = 1
128+
let g:airline_left_sep = '▓▒░'
129+
let g:airline_left_alt_sep = ''
130+
let g:airline_right_sep = '░▒▓'
131+
let g:airline_right_alt_sep = ''
126132

127133
" NERDTree
128134
let g:NERDTreeMouseMode=3

zshrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# load a random theme each time oh-my-zsh is loaded, in which case,
99
# to know which specific one was loaded, run: echo $RANDOM_THEME
1010
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
11-
ZSH_THEME="amuse"
11+
ZSH_THEME="spaceship"
1212

1313
# Set list of themes to pick from when loading at random
1414
# Setting this variable when ZSH_THEME=random will cause zsh to load
@@ -74,9 +74,13 @@ plugins=(rails git ruby zsh-autosuggestions tmux zsh-syntax-highlighting)
7474
source $ZSH/oh-my-zsh.sh
7575

7676
# User configuration
77-
7877
bindkey '^ ' autosuggest-accept
7978

79+
# App alias
80+
alias yt='mpsyt'
81+
alias ms='ncmpcpp'
82+
alias gg='googler -n 7'
83+
8084
# export MANPATH="/usr/local/man:$MANPATH"
8185

8286
# You may need to manually set your language environment

0 commit comments

Comments
 (0)