From 2398cb234ad450dcec0e41a235c7137c3d0f831a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 19 Jan 2025 18:22:28 +0900 Subject: update on scripts for better notification via swaync --- config/hypr/scripts/MediaCtrl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/hypr/scripts/MediaCtrl.sh') diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index f519340f..2cbeccf3 100755 --- a/config/hypr/scripts/MediaCtrl.sh +++ b/config/hypr/scripts/MediaCtrl.sh @@ -25,7 +25,7 @@ toggle_play_pause() { # Stop playback stop_playback() { playerctl stop - notify-send -e -u low -i "$music_icon" " Playback Stopped" + notify-send -e -u low -i $music_icon " Playback:" " Stopped" } # Display notification with song information @@ -34,9 +34,9 @@ show_music_notification() { if [[ "$status" == "Playing" ]]; then song_title=$(playerctl metadata title) song_artist=$(playerctl metadata artist) - notify-send -e -u low -i "$music_icon" " Now Playing:" " $song_title by $song_artist" + notify-send -e -u low -i $music_icon "Now Playing:" "$song_title by $song_artist" elif [[ "$status" == "Paused" ]]; then - notify-send -e -u low -i "$music_icon" " Playback Paused" + notify-send -e -u low -i $music_icon " Playback:" " Paused" fi } -- cgit v1.2.3