{"id":580,"date":"2012-10-01T23:15:46","date_gmt":"2012-10-01T21:15:46","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/?p=580"},"modified":"2012-10-01T23:15:46","modified_gmt":"2012-10-01T21:15:46","slug":"using-kde-systray-notifications-from-bash-scripts","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2012\/10\/01\/using-kde-systray-notifications-from-bash-scripts\/","title":{"rendered":"Using KDE systray notifications from bash scripts"},"content":{"rendered":"<p>I just improved my <a title=\"Extract audio from AV container service menu for KDE4\" href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2010\/01\/26\/extract-audio-from-av-container-service-menu-for-kde4\/\">Extract audio<\/a> script to show a system notification when it&#8217;s finished. In the meantime I also have a &#8220;convert to mp3&#8221; script which proves useful if you don&#8217;t care about the original audio stream and\/or you target a platform with limited decoding abilities:<\/p>\n<p><code>ffmpeg -i %u -acodec libmp3lame -ar 44100 -ab 160k %u.mp3<\/code><\/p>\n<p>To popup a KDE4 system tray notification at the end of the encoding process, simply add the following:<\/p>\n<p><code>kdialog --passivepopup 'Finished converting %u' 3<\/code><\/p>\n<p>The last value simply specifies the timeout in seconds. To chain the commands together, use a semicolon, so it also executes when the encode fails.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just improved my Extract audio script to show a system notification when it&#8217;s finished. In the meantime I also have a &#8220;convert to mp3&#8221; script which proves useful if you don&#8217;t care about the original audio stream and\/or you target a platform with limited decoding abilities: ffmpeg -i %u -acodec libmp3lame -ar 44100 -ab &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2012\/10\/01\/using-kde-systray-notifications-from-bash-scripts\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using KDE systray notifications from bash scripts<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,4,10],"tags":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-kde","category-linux","category-tweaking"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":2,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/580\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}