Copy all .config directory at once

This commit is contained in:
Yorick Barbanneau 2023-03-07 22:16:24 +01:00
parent e2d12b0e44
commit 280c214e9b
5 changed files with 7 additions and 18 deletions

36
files/config/cmus/notify.sh Executable file
View file

@ -0,0 +1,36 @@
#!/bin/bash
#
#CMUS notification
#
options="--app-name=cmus"
body=""
while [ "$#" -ge 2 ]
do
eval $1='$2'
shift
shift
done
filename=${file##*/}
image=${file%/*}/cover.jpg
[ -f "$image" ] && options="$options -i ${image}"
title=${title:-$filename}
if [ -n "$artist" ]
then
body="$body <i>$artist</i>\n"
fi
if [ -n "$album" ]
then
body="$body $album"
fi
if [ -n "$date" ]
then
body="$body ${date%%-*}"
fi
body=${body:-'no informations'}
notify-send $options "$title" "$body"

56
files/config/cmus/rc Normal file
View file

@ -0,0 +1,56 @@
## Base16 Default Dark
# overall background and foreground color
set color_win_fg=7
set color_win_bg=0
# bottom status line
set color_statusline_fg=20
set color_statusline_bg=19
# bottom title line
set color_titleline_fg=7
set color_titleline_bg=18
# top title area
set color_win_title_fg=20
set color_win_title_bg=19
set color_win_title_attr=bold
# command-line colors
set color_cmdline_bg=default
set color_cmdline_fg=default
set color_error=1
set color_info=6
# separator of windows
# should be black
set color_separator=16
# unselected currently playing track's text
set color_win_cur=13
# active selection for currently playing track
set color_win_cur_sel_bg=20
set color_win_cur_sel_fg=0
set color_win_cur_sel_attr=none
# inactive selection for currently playing track
set color_win_inactive_cur_sel_bg=8
set color_win_inactive_cur_sel_fg=21
# active selection
set color_win_sel_bg=6
set color_win_sel_fg=0
set color_win_sel_attr=none
# inactive selection
set color_win_inactive_sel_bg=19
set color_win_inactive_sel_fg=20
# directory listing color
set color_win_dir=default
set status_display_program=~/.config/cmus/notify.sh
add -l ~/medias/music