dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit 31edecf016c01d1ce6bbef522e78bdee2a089fe8
parent de40ac5171253673a65759665eca18f9395a00cf
Author: Ashymad <czilukim@o2.pl>
Date:   Fri,  6 Oct 2017 14:24:06 +0200

use geeqie to display cover art

Diffstat:
A.cmus/cmus-geeqie.sh | 29+++++++++++++++++++++++++++++
M.cmus/rc | 1+
M.config/astroid/config | 2+-
3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/.cmus/cmus-geeqie.sh b/.cmus/cmus-geeqie.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +## 'status_display_program' for Cmus. Shows album art in a fixed size window. +## Use your window manager to automatically manipulate the window. +## There are several album art viewers for Cmus but this I believe is the most +## compatible with different setups as it is simpler. No weird hacks. + +## Requires feh (light no-gui image viewer). + +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 + + + + # '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" + geeqie -r "$ART" +else + exit +fi diff --git a/.cmus/rc b/.cmus/rc @@ -1,3 +1,4 @@ set output_plugin=pulse set mouse=true set resume=true +set status_display_program=/home/shyman/.cmus/cmus-geeqie.sh diff --git a/.config/astroid/config b/.config/astroid/config @@ -104,7 +104,7 @@ "always_gpg_sign": "false", "sendmail": "msmtp -t", "default": "true", - "save_sent": "false", + "save_sent": "true", "save_sent_to": "\/home\/root\/Mail\/sent\/cur\/", "additional_sent_tags": "", "save_drafts_to": "\/home\/root\/Mail\/drafts\/",