aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/MediaCtrl.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-01-19 18:22:28 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-01-19 18:22:28 +0900
commit2398cb234ad450dcec0e41a235c7137c3d0f831a (patch)
tree7e7e93374d7e811abae601d2aa7b1fd5aacbc211 /config/hypr/scripts/MediaCtrl.sh
parent297144b5dd1b08819276840c138c01c584689165 (diff)
update on scripts for better notification via swaync
Diffstat (limited to 'config/hypr/scripts/MediaCtrl.sh')
-rwxr-xr-xconfig/hypr/scripts/MediaCtrl.sh6
1 files changed, 3 insertions, 3 deletions
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
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage