aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/MediaCtrl.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-01-16 10:54:47 +0900
committerGitHub <noreply@github.com>2025-01-16 10:54:47 +0900
commitc30b1c5599daa78169486d76c9d3dd2fba3803a8 (patch)
treea50caee93fc0c2f0d8c02f6d0120af71cc24f1ac /config/hypr/scripts/MediaCtrl.sh
parenta4956da883d5fe2d66d528d2e9a890a2c6d064a8 (diff)
parent47a6c42c77244b4b18f6e074542c15bc43bc4273 (diff)
Merge pull request #526 from JaKooLit/development
Development to main
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 e0fec253..f519340f 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" "$(printf "\n 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" "$(printf "\n Now Playing: $song_title\n 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" "$(printf "\n 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