diff options
| -rw-r--r-- | .vimrc | 20 | ||||
| -rwxr-xr-x | .xinitrc | 4 | ||||
| -rw-r--r-- | .zsh_aliases | 2 | ||||
| -rwxr-xr-x | bin/tag-music | 38 |
4 files changed, 25 insertions, 39 deletions
@@ -207,17 +207,15 @@ nnoremap <leader>q :call QuickfixToggle()<CR> nnoremap <leader>n :cnext <CR> nnoremap <leader>p :cprevious <CR> let g:quickfix_is_open = 0 -if !exists('*QuickfixToggle') - function QuickfixToggle() - if g:quickfix_is_open - cclose - let g:quickfix_is_open = 0 - else - copen - let g:quickfix_is_open = 1 - endif - endfunction -endif +function! QuickfixToggle() + if g:quickfix_is_open + cclose + let g:quickfix_is_open = 0 + else + copen + let g:quickfix_is_open = 1 + endif +endfunction " }}} " make {{{ @@ -1,7 +1,11 @@ # xinput disable 'ETPS/2 Elantech Touchpad' & + echo 'Starting redshift' redshift -c /home/charles/.config/redshift.conf & echo 'Starting dunst' dunst & + +xset r rate 300 40 + echo 'Starting XMonad' exec xmonad 2>&1 > /dev/null diff --git a/.zsh_aliases b/.zsh_aliases index 1115abc..8535ce5 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -32,7 +32,7 @@ alias ta='tree -a' alias t1='tree -L 1' alias t2='tree -L 2' alias t3='tree -L 3' -# alias ti="tree | grep -v -E '*.pyc'" +alias ti="tree --matchdirs -I __pycache__ -I node_modules -I '*.o'" # man alias ma="man" diff --git a/bin/tag-music b/bin/tag-music index 17d6aac..e801132 100755 --- a/bin/tag-music +++ b/bin/tag-music @@ -16,33 +16,17 @@ do for song_file in "$album_dir"/* do [ ! -f "$song_file" ] && continue - song="$(basename "$song_file" | cut -d '.' -f 1)" - # echo "$artist" - # echo "$album" - # echo "$song" - case "$song_file" in - *.ogg) - ;; - *.opus) - echo "OPUS: $song_file" - echo "Title=$song -Artist=$artist -Album=$album -Track= -Total= -Date= -Genre= -Comment=" | opustags -i -S "$song_file" - ;; - *.mp3) - id3tag --artist "$artist" --album "$album" --song "$song" "$songfile" - ;; - *.m4a) - id3tag --artist "$artist" --album "$album" --song "$song" "$songfile" - ;; - *) - ;; - esac + song="$(basename "$song_file" | rev | cut -d '.' -f 2- | rev)" + # echo $song_file + track=0 + if expr "$song" : "[0-9][0-9]*\-.*" > /dev/null + then + track="$(echo "$song" | cut -d '-' -f 1)" + song="$(echo "$song" | cut -d '-' -f 2-)" + fi + # echo $track $song + echo $song_file + taffy --artist "$artist" --album "$album" --title "$song" --track "$track" "$song_file" done done done |
