dot

packages and services management
Log | Files | Refs | README

commit ffca5c6fe12f45e171253cf29bfc97dadf6bdf80
parent 84b0ded000853a67b1a69ed65fb8860dee58ee1f
Author: josuah <mail@josuah.net>
Date:   Tue, 30 Aug 2016 12:37:06 +0200

Added a simplistic music script

Diffstat:
Abin/music | 16++++++++++++++++
Mbin/run | 2+-
Mbin/todo | 2+-
Mshell/.cache/todo | 2++
Mshell/.profile | 2+-
Mvim/build.sh | 8++++----
6 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/bin/music b/bin/music @@ -0,0 +1,16 @@ +#!/bin/sh +# __ +# ________ __ /\ ____ \/ ____ +# / __ __ \ / / / / / __/ /\ / ___\ +# / / / / / // /_/ /__\ \ / // /__ +# \/ \/ \/ \____/ \___/ \/ \____\ - prompt for a music to play with ffplay +#------------------------------------------------------------------------------- + +cd "$HOME/Music" + +while : +do find . -mindepth 1 -type f -follow | sed 's/^.\///' | fzy -l 25 | { + read track + [ "$track" ] && ffplay "$track" + } +done diff --git a/bin/run b/bin/run @@ -37,7 +37,7 @@ alsamixer ) opt='-c 1' ;; ping ) opt='-c 3 www.wikipedia.org' ;; feeds ) opt='read' ;; irc ) opt='-i' ;; -htop | s-nail | rirc | agenda | cmus ) : ;; +htop | s-nail | rirc | agenda | music ) : ;; vi | vim | vis | less | ex-vi | ex | ed | emacsclient ) opt="$(find ./ -type f ! -path '*/.git/*' | fzy)" file="$opt" ;; diff --git a/bin/todo b/bin/todo @@ -1,4 +1,4 @@ -todo="$DOT/doc/todo" t='' cmd='' +todo="$HOME/.cache/todo" t='' cmd='' if [ "$1" = e ]; then $EDITOR "$todo"; return 0; fi diff --git a/shell/.cache/todo b/shell/.cache/todo @@ -10,3 +10,5 @@ vis-menu integration with the shell, with more while command goes above the bott vis-menu and completion: on CTRL + N, start vis-menu right under the cursor. vis: 0, $ and ^ to work even on empty lines irc: ASCII mail pizza delivering irc server +Call 0223233079 to tell if OK for UR1.fr +--help diff --git a/shell/.profile b/shell/.profile @@ -112,7 +112,7 @@ d() find "${1-.}" -type d ! -path '*/.git/*' | fzy } -x() +f() { find "${1-.}" -type f ! -path '*/.git/*' | fzy } diff --git a/vim/build.sh b/vim/build.sh @@ -5,10 +5,10 @@ tar=https://github.com/vim/vim/archive/master.tar.gz build() { ./configure \ - --with-features=small \ - --disable-gui \ - --without-x \ - --without-gnome \ + --with-features=normal \ + --disable-gui \ + --without-x \ + --without-gnome \ --prefix="$PREFIX" make install