aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/MediaCtrl.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-12-29 15:44:57 +0900
committerGitHub <noreply@github.com>2023-12-29 15:44:57 +0900
commit2c070b5bfb2de84abed8a4cd45e999999021db38 (patch)
treeab297f40d72eab1dad7506e005cec1654f942ff6 /config/hypr/scripts/MediaCtrl.sh
parent76672ae5a6ac03c416bc705d51dec363f88b7a40 (diff)
parent69772de8b00a85a7da8e3d56c802fcfd01affe1c (diff)
Merge pull request #106 from JaKooLit/development
Development to Main for v2.2.2 Changes
Diffstat (limited to 'config/hypr/scripts/MediaCtrl.sh')
-rwxr-xr-xconfig/hypr/scripts/MediaCtrl.sh10
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
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage