Adds delay to mediactrl
This commit is contained in:
parent
6d141a1a3b
commit
9d145716ff
1 changed files with 33 additions and 32 deletions
|
|
@ -30,6 +30,7 @@ stop_playback() {
|
||||||
|
|
||||||
# Display notification with song information
|
# Display notification with song information
|
||||||
show_music_notification() {
|
show_music_notification() {
|
||||||
|
sleep 0.5s
|
||||||
status=$(playerctl status)
|
status=$(playerctl status)
|
||||||
if [[ "$status" == "Playing" ]]; then
|
if [[ "$status" == "Playing" ]]; then
|
||||||
song_title=$(playerctl metadata title)
|
song_title=$(playerctl metadata title)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue