tag:blogger.com,1999:blog-2843542351611056012.post3314459943882123606..comments2023-12-26T19:00:12.980+01:00Comments on Alex's blog: Sound volume change notifications using pynotifyUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2843542351611056012.post-83214754984686105532017-04-02T18:50:00.713+02:002017-04-02T18:50:00.713+02:00Thank you!!
Here is a modded version that worked f...Thank you!!<br />Here is a modded version that worked for me..<br /><br />$ cat volume.sh <br />#!/bin/bash<br /><br /># $0 - icon_name, $2 - volume, $3 - id<br />print_cmd()<br />{<br />cat </dev/null);id=${id:-0}<br />idn=$(python2 -c "$(print_cmd $icon $volume $id)")<br />(($idn != $id)) && echo "$idn" > "$id_file"<br />exit 0<br />Felipe Marinhonoreply@blogger.com