This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dylan
committed
Feb 19, 2016
1 parent
2a24488
commit c89b7da
Showing
6 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverspawn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ pulseaudio --start & | |
redshift -m randr & | ||
|
||
# Start openbox | ||
exec openbox | ||
exec openbox-session |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/mksh | ||
# Display cover art based on "mpc current" | ||
# | ||
# Created by Dylan Araps | ||
# https://github.com/dylanaraps/dotfiles | ||
|
||
# Show cursor on exit | ||
trap 'printf "\033[?25h"; clear; exit' 2 | ||
|
||
# Set terminal title | ||
echo -e '\033]2;'Music'\007' | ||
|
||
# Hide terminal cursor | ||
tput civis | ||
|
||
# Clear terminal output | ||
clear | ||
|
||
# Cover directory | ||
dir=$HOME/Music/covers/ | ||
|
||
# Image size | ||
width=$1 | ||
height=$1 | ||
|
||
# Image offset | ||
xoffset=0 | ||
yoffset=0 | ||
|
||
# Image format | ||
format=jpg | ||
|
||
while :; do | ||
currentsong=$(mpc current) | ||
currentsong=${currentsong//\/} | ||
img="$dir$currentsong.$format" | ||
|
||
w3m_command="0;1;$xoffset;$yoffset;$width;$height;;;;;$img\n4;\n3;" | ||
echo -e "$w3m_command" | /usr/lib/w3m/w3mimgdisplay | ||
|
||
# Update on mpd play/pause/next/prev and database update | ||
mpc idle player update > /dev/null 2>&1 | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/mksh | ||
# Spawn a terminal that displays cover art | ||
# | ||
# Created by Dylan Araps | ||
# https://github.com/dylanaraps/dotfiles | ||
|
||
# Source colors | ||
source ~/dotfiles/scripts/colors/output/colors.sh | ||
|
||
# Spawn the terminal | ||
urxvtc -name "Music" -bg "#$white" -fn "xft:fixed" -b 3 -g 18x8 -e mksh -c "cover 140" >/dev/null | ||
|
||
# Redraw album art | ||
mpc update | ||
mpc update | ||
mpc update |