Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ Authors
pa-applet was created by:

Fernando Tarlá Cardoso Lemos <fernandotcl AT gmail.com>

Notification patch created by:

Michael Mao
7 changes: 6 additions & 1 deletion src/notifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ void notifications_flash(void)
notify_notification_set_hint_int32(notification, "value", (gint)as->volume);

// Update the notification icon
notify_notification_update(notification, PROGRAM_NAME, NULL, icon_name);
char vol[4];
char notification_str[12];
sprintf(vol, "%d", (gint)as->volume);
strcpy(notification_str, "Volume: ");
strcat(notification_str, vol);
notify_notification_update(notification, notification_str, NULL, icon_name);

// Show the notification
notify_notification_show(notification, NULL);
Expand Down