Compare commits
2 commits
a08c137343
...
c3c74e8824
| Author | SHA1 | Date | |
|---|---|---|---|
| c3c74e8824 | |||
| 5c4d03eaa1 |
3 changed files with 15 additions and 6 deletions
|
|
@ -6,6 +6,9 @@ while read L; do
|
||||||
export "$k=$v"
|
export "$k=$v"
|
||||||
done < <(grep -e '^\(title\|artist\|album\|stationName\|songStationName\|pRet\|pRetStr\|wRet\|wRetStr\|songDuration\|songPlayed\|rating\|coverArt\|stationCount\|station[0-9]*\)=' "$HOME/.config/pianobar/info")
|
done < <(grep -e '^\(title\|artist\|album\|stationName\|songStationName\|pRet\|pRetStr\|wRet\|wRetStr\|songDuration\|songPlayed\|rating\|coverArt\|stationCount\|station[0-9]*\)=' "$HOME/.config/pianobar/info")
|
||||||
|
|
||||||
curl "$coverArt" --silent --output "$HOME/.config/pianobar/album.jpg"
|
if [ -z "$coverArt" ]; then
|
||||||
|
notify-send "Now playing:" "$title by $artist on $album"
|
||||||
notify-send "Now playing:" "$title by $artist on $album" --icon="$HOME/.config/pianobar/album.jpg"
|
else
|
||||||
|
curl "$coverArt" --silent --output "$HOME/.config/pianobar/album.jpg"
|
||||||
|
notify-send "Now playing:" "$title by $artist on $album" --icon="$HOME/.config/pianobar/album.jpg"
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,12 @@ done < <(grep -e '^\(title\|artist\|album\|stationName\|songStationName\|pRet\|p
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
songstart)
|
songstart)
|
||||||
curl "$coverArt" --silent --output "$HOME/.config/pianobar/album.jpg"
|
if [ -z "$coverArt" ]; then
|
||||||
notify-send "Now playing:" "$title by $artist on $album" --icon="$HOME/.config/pianobar/album.jpg"
|
notify-send "Now playing:" "$title by $artist on $album"
|
||||||
|
else
|
||||||
|
curl "$coverArt" --silent --output "$HOME/.config/pianobar/album.jpg"
|
||||||
|
notify-send "Now playing:" "$title by $artist on $album" --icon="$HOME/.config/pianobar/album.jpg"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,9 @@ riverctl border-width 2
|
||||||
|
|
||||||
# options
|
# options
|
||||||
riverctl set-repeat 50 300
|
riverctl set-repeat 50 300
|
||||||
riverctl keyboard-layout -options "altwin:swap_lalt_lwin" us
|
# riverctl keyboard-layout -options "altwin:swap_lalt_lwin" us
|
||||||
|
riverctl keyboard-layout -options "altwin:swap_lalt_lwin,grp:alt_space_toggle" -variant ,colemak_dh us,us
|
||||||
|
# riverctl keyboard-layout -options "altwin:swap_lalt_lwin,grp:alt_space_toggle" -variant ,colemak_dh,dvorak us,us,us
|
||||||
# riverctl keyboard-layout -options "grp:alt_space_toggle" -variant ,dvorak us,us
|
# riverctl keyboard-layout -options "grp:alt_space_toggle" -variant ,dvorak us,us
|
||||||
|
|
||||||
riverctl focus-follows-cursor normal
|
riverctl focus-follows-cursor normal
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue