diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-12-27 13:23:34 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-12-27 13:23:34 +0900 |
| commit | 1e2a3b25aa760885ee326433ef0ab176e39c73bc (patch) | |
| tree | f9a14d7eb0dac4e0458083eff4708c9aaebfb4f3 /config/hypr/scripts/MediaCtrl.sh | |
| parent | 3eb715f78172f2e854fc744841ee74203af28073 (diff) | |
updated for swaync
Diffstat (limited to 'config/hypr/scripts/MediaCtrl.sh')
| -rwxr-xr-x | config/hypr/scripts/MediaCtrl.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index f9611523..9d970443 100755 --- a/config/hypr/scripts/MediaCtrl.sh +++ b/config/hypr/scripts/MediaCtrl.sh @@ -1,6 +1,6 @@ #!/bin/bash -music_icon="$HOME/.config/dunst/icons/music.png" +music_icon="$HOME/.config/swaync/icons/music.png" # Play the next track play_next() { @@ -23,18 +23,18 @@ toggle_play_pause() { # Stop playback stop_playback() { playerctl stop - dunstify -r 123 -i "$music_icon" "Playback Stopped" + notify-send -e -u low -i "$music_icon" "Playback Stopped" } -# Display Dunst notification with song information +# Display notification with song information show_music_notification() { status=$(playerctl status) if [[ "$status" == "Playing" ]]; then song_title=$(playerctl metadata title) song_artist=$(playerctl metadata artist) - dunstify -r 123 -i "$music_icon" "Now Playing:" "$song_title\nby $song_artist" + notify-send -e -u low -i "$music_icon" "Now Playing:" "$song_title\nby $song_artist" elif [[ "$status" == "Paused" ]]; then - dunstify -r 123 -i "$music_icon" "Playback Paused" + notify-send -e -u low -i "$music_icon" "Playback Paused" fi } |
