diff options
author | Cristian Cezar Moisés <[email protected]> | 2024-08-26 01:54:41 +0000 |
---|---|---|
committer | Cristian Cezar Moisés <[email protected]> | 2024-08-26 01:54:41 +0000 |
commit | bf23f3a1e3928949b6c033de724c7dd88df85a44 (patch) | |
tree | 1918e6f68ee0ad879a224c12bfafd73d8b5f3207 | |
parent | 45115528bad877f82cb46082a529c28626c2e14b (diff) |
Upload files to ".config/cmus"
-rw-r--r-- | .config/cmus/autosave | 132 | ||||
-rw-r--r-- | .config/cmus/cache | bin | 0 -> 8 bytes | |||
-rw-r--r-- | .config/cmus/cc1.sh | 26 | ||||
-rw-r--r-- | .config/cmus/cc2.sh | 26 | ||||
-rw-r--r-- | .config/cmus/command-history | 2 | ||||
-rw-r--r-- | .config/cmus/lib.pl | bin | 0 -> 1024 bytes | |||
-rw-r--r-- | .config/cmus/rc | 27 | ||||
-rw-r--r-- | .config/cmus/rc.old | 75 | ||||
-rw-r--r-- | .config/cmus/search-history | bin | 0 -> 1024 bytes |
9 files changed, 288 insertions, 0 deletions
diff --git a/.config/cmus/autosave b/.config/cmus/autosave new file mode 100644 index 0000000..9f47a2b --- /dev/null +++ b/.config/cmus/autosave @@ -0,0 +1,132 @@ +set aaa_mode=all +set altformat_current= %F +set altformat_playlist= %f%= %d +set altformat_title=%f +set altformat_trackwin= %f%= %d +set auto_expand_albums_follow=true +set auto_expand_albums_search=true +set auto_expand_albums_selcur=true +set auto_hide_playlists_panel=false +set auto_reshuffle=true +set block_key_paste=true +set buffer_seconds=10 +set color_cmdline_attr=default +set color_cmdline_bg=default +set color_cmdline_fg=255 +set color_cur_sel_attr=default +set color_error=196 +set color_info=220 +set color_separator=green +set color_statusline_attr=default +set color_statusline_bg=234 +set color_statusline_fg=45 +set color_titleline_attr=default +set color_titleline_bg=default +set color_titleline_fg=46 +set color_trackwin_album_attr=bold +set color_trackwin_album_bg=default +set color_trackwin_album_fg=default +set color_win_attr=default +set color_win_bg=default +set color_win_cur=46 +set color_win_cur_attr=default +set color_win_cur_sel_attr=default +set color_win_cur_sel_bg=235 +set color_win_cur_sel_fg=118 +set color_win_dir=250 +set color_win_fg=255 +set color_win_inactive_cur_sel_attr=default +set color_win_inactive_cur_sel_bg=233 +set color_win_inactive_cur_sel_fg=46 +set color_win_inactive_sel_attr=default +set color_win_inactive_sel_bg=234 +set color_win_inactive_sel_fg=green +set color_win_sel_attr=default +set color_win_sel_bg=235 +set color_win_sel_fg=45 +set color_win_title_attr=default +set color_win_title_bg=234 +set color_win_title_fg=45 +set confirm_run=true +set continue=true +set continue_album=true +set device=/dev/cdrom +set display_artist_sort_name=false +set dsp.alsa.device= +set dsp.ao.buffer_size=16384 +set dsp.ao.device_interface= +set dsp.ao.driver= +set dsp.ao.wav_counter=1 +set dsp.ao.wav_dir=/home/berkeley +set dsp.jack.resampling_quality=2 +set dsp.jack.server_name= +set follow=false +set format_clipped_text=… +set format_current= %a - %l%! - %n. %t%= %y +set format_playlist= %-21%a %3n. %t%= %y %d %{?X!=0?%3X ? } +set format_playlist_va= %-21%A %3n. %t (%a)%= %y %d %{?X!=0?%3X ? } +set format_statusline= %{status} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }}- %{total} %{?bpm>0?at %{bpm} BPM }%{?volume>=0?vol: %{?lvolume!=rvolume?%{lvolume},%{rvolume} ?%{volume} }}%{?stream?buf: %{buffer} }%{?show_current_bitrate & bitrate>=0? %{bitrate} kbps }%=%{?repeat_current?repeat current?%{?play_library?%{playlist_mode} from %{?play_sorted?sorted }library?playlist}} | %1{continue}%1{follow}%1{repeat}%1{shuffle} +set format_title=%a - %l - %t (%y) +set format_trackwin=%3n. %t%= %y %d +set format_trackwin_album= %l %= %{albumduration} +set format_trackwin_va=%3n. %t (%a)%= %y %d +set format_treewin= %l +set format_treewin_artist=%a +set icecast_default_charset=ISO-8859-1 +set id3_default_charset=ISO-8859-1 +set ignore_duplicates=false +set input.aac.priority=50 +set input.cdio.cddb_url=freedb.freedb.org:8880 +set input.cdio.priority=50 +set input.cue.priority=50 +set input.ffmpeg.priority=30 +set input.flac.priority=50 +set input.mad.priority=55 +set input.modplug.priority=50 +set input.mpc.priority=50 +set input.opus.priority=50 +set input.vorbis.priority=50 +set input.wav.priority=50 +set input.wavpack.priority=50 +set lib_add_filter= +set lib_sort=albumartist date album discnumber tracknumber title filename play_count +set mixer.alsa.channel= +set mixer.alsa.device= +set mixer.pulse.restore_volume=1 +set mouse=false +set mpris=true +set output_plugin=pulse +set passwd= +set pause_on_output_change=false +set pl_env_vars= +set pl_sort= +set play_library=true +set play_sorted=false +set repeat=false +set repeat_current=false +set replaygain=disabled +set replaygain_limit=true +set replaygain_preamp=0.000000 +set resume=false +set rewind_offset=5 +set scroll_offset=2 +set set_term_title=true +set show_all_tracks=true +set show_current_bitrate=false +set show_hidden=false +set show_playback_position=true +set show_remaining_time=false +set shuffle=off +set skip_track_info=false +set smart_artist_sort=true +set softvol=false +set softvol_state=0 0 +set sort_albums_by_name=false +set start_view=tree +set status_display_program= +set stop_after_queue=false +set time_show_leading_zero=true +set tree_width_max=0 +set tree_width_percent=33 +set wrap_search=true +factivate diff --git a/.config/cmus/cache b/.config/cmus/cache Binary files differnew file mode 100644 index 0000000..7628ee1 --- /dev/null +++ b/.config/cmus/cache diff --git a/.config/cmus/cc1.sh b/.config/cmus/cc1.sh new file mode 100644 index 0000000..759e802 --- /dev/null +++ b/.config/cmus/cc1.sh @@ -0,0 +1,26 @@ +FOLDER=$( cmus-remote -Q | grep "file" | sed "s/file //" | rev | cut -d"/" -f2- | rev ) + +FLIST=$( find "$FOLDER" -type f ) + +if echo "$FLIST" | grep -i ".jpeg\|.png\|.jpg" &>/dev/null; then + ART=$( echo "$FLIST" | grep -i "cover.jpg\|cover.png\|front.jpg\|front.png\|folder.jpg\|folder.png" | head -n1 ) + + if [[ -z "$ART" ]]; then + ART=$( echo "$FLIST" | grep -i ".png\|.jpg\|.jpeg" | head -n1 ) + fi + + PROC=$( ps -eF | grep "feh" | grep -v "cmus\|grep" | cut -d"/" -f2- ) + + if [[ "/$PROC" == "$ART" ]]; then + exit + fi + + killall -q feh + + # '200x200' is the window size for the artwork. '+1160+546' is the offset. + # For example, if you want a 250 by 250 window on the bottom right hand corner of a 1920 by 1080 screen: "250x250+1670+830" + setsid feh --bg-color black -g 250x250+1670+830 -x --fill "$ART" & +else + killall -q feh + exit +fi diff --git a/.config/cmus/cc2.sh b/.config/cmus/cc2.sh new file mode 100644 index 0000000..cfb0ff6 --- /dev/null +++ b/.config/cmus/cc2.sh @@ -0,0 +1,26 @@ +FOLDER=$( cmus-remote -Q | grep "file" | sed "s/file //" | rev | cut -d"/" -f2- | rev ) + +FLIST=$( find "$FOLDER" -type f ) + +if echo "$FLIST" | grep -i ".jpeg\|.png\|.jpg" &>/dev/null; then + ART=$( echo "$FLIST" | grep -i "cover.jpg\|cover.png\|front.jpg\|front.png\|folder.jpg\|folder.png" | head -n1 ) + + if [[ -z "$ART" ]]; then + ART=$( echo "$FLIST" | grep -i ".png\|.jpg\|.jpeg" | head -n1 ) + fi + + PROC=$( ps -eF | grep "feh" | grep -v "cmus\|grep" | cut -d"/" -f2- ) + + if [[ "/$PROC" == "$ART" ]]; then + exit + fi + + killall -q feh + + # '200x200' is the window size for the artwork. '+1160+546' is the offset. + # For example, if you want a 250 by 250 window on the bottom right hand corner of a 1920 by 1080 screen: "250x250+1670+830" + setsid feh -g 200x200-200+546 -x --zoom fill --bg-max --auto-zoom --auto-rotate --bg-color black "$ART" & +else + killall -q feh + exit +fi diff --git a/.config/cmus/command-history b/.config/cmus/command-history new file mode 100644 index 0000000..feb767b --- /dev/null +++ b/.config/cmus/command-history @@ -0,0 +1,2 @@ +music +play diff --git a/.config/cmus/lib.pl b/.config/cmus/lib.pl Binary files differnew file mode 100644 index 0000000..06d7405 --- /dev/null +++ b/.config/cmus/lib.pl diff --git a/.config/cmus/rc b/.config/cmus/rc new file mode 100644 index 0000000..5aabbcc --- /dev/null +++ b/.config/cmus/rc @@ -0,0 +1,27 @@ +### 'Night' theme for CMus (for 255 color terms) +### (C) 2013 Mladen Pejaković <[email protected]> +### {{{ +set color_cmdline_bg=default +set color_cmdline_fg=255 +set color_error=196 +set color_info=220 +set color_separator=002 +set color_statusline_bg=234 +set color_statusline_fg=045 +set color_titleline_bg=default +set color_titleline_fg=046 +set color_win_bg=default +set color_win_cur=046 +set color_win_cur_sel_bg=235 +set color_win_cur_sel_fg=118 +set color_win_dir=250 +set color_win_fg=255 +set color_win_inactive_cur_sel_bg=233 +set color_win_inactive_cur_sel_fg=046 +set color_win_inactive_sel_bg=234 +set color_win_inactive_sel_fg=002 +set color_win_sel_bg=235 +set color_win_sel_fg=045 +set color_win_title_bg=234 +set color_win_title_fg=045 +### }}} diff --git a/.config/cmus/rc.old b/.config/cmus/rc.old new file mode 100644 index 0000000..cbce6a8 --- /dev/null +++ b/.config/cmus/rc.old @@ -0,0 +1,75 @@ +## Base16 Black Metal (Burzum) +## Author: metalelf0 (https://github.com/metalelf0) + +## +# The following matchup is only true if you also changed your terminal emulator +# colors to the same as the scheme you are using. +# 0: #000000 +# 1: #5f8787 +# 2: #ddeecc +# 3: #99bbaa +# 4: #888888 +# 5: #999999 +# 6: #aaaaaa +# 7: #c1c1c1 +# 8: #333333 +# 9: #aaaaaa +# 10: #121212 +# 11: #222222 +# 12: #999999 +# 13: #999999 +# 14: #444444 +# 15: #c1c1c1 +# 16: #000000 +## + +# overall background and foreground color +set color_win_fg=default +set color_win_bg=default + +# bottom status line +set color_statusline_fg=2 +set color_statusline_bg=default + +# bottom title line +set color_titleline_fg=2 +set color_titleline_bg=default + +# top title area +set color_win_title_fg=2 +set color_win_title_bg=default +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=default +set color_win_cur_sel_fg=3 +set color_win_cur_sel_attr=underline + +# inactive selection for currently playing track +set color_win_inactive_cur_sel_bg=default +set color_win_inactive_cur_sel_fg=13 + +# active selection +set color_win_sel_bg=default +set color_win_sel_fg=3 +set color_win_sel_attr=underline + +# inactive selection +set color_win_inactive_sel_bg=default +set color_win_inactive_sel_fg=1 + +# directory listing color +set color_win_dir=default diff --git a/.config/cmus/search-history b/.config/cmus/search-history Binary files differnew file mode 100644 index 0000000..06d7405 --- /dev/null +++ b/.config/cmus/search-history |