aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc20
-rwxr-xr-x.xinitrc4
-rw-r--r--.zsh_aliases2
-rwxr-xr-xbin/tag-music38
4 files changed, 25 insertions, 39 deletions
diff --git a/.vimrc b/.vimrc
index 76dd3e9..fc58ac5 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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 {{{
diff --git a/.xinitrc b/.xinitrc
index 0be482b..100efcf 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -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