diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-01-14 00:12:29 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-01-14 00:12:29 +0900 |
| commit | df57f9890b28aa6f5139e2917cee213031ba0e9c (patch) | |
| tree | 644b7851f189af52bfde39a2658cfe0d2fd20d7c /config/hypr/scripts/MediaCtrl.sh | |
| parent | 2d7d7b685e6ad01bd7c390700c17738cba05e3b1 (diff) | |
some scripts are tweaked to get a better notification. swaync config tweaked
Diffstat (limited to 'config/hypr/scripts/MediaCtrl.sh')
| -rwxr-xr-x | config/hypr/scripts/MediaCtrl.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index b3f94295..e0fec253 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" "$(printf "\n 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\nby $song_artist" + notify-send -e -u low -i "$music_icon" "$(printf "\n Now Playing: $song_title\n 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" "$(printf "\n Playback Paused")" fi } |
