{"id":203504,"date":"2013-11-25T12:10:02","date_gmt":"2013-11-25T08:10:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=203504"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=203504","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u044f \u0432\u0435\u0448\u0430\u043b \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043d\u0430 Unity sound indicator<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f, \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u043a\u043e\u0433\u043e \u043c\u043e\u0433 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442, \u043b\u044e\u0431\u043b\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 Unity \u0437\u0430 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043b\u044e\u0448\u043a\u0438 \u043f\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0441\u0430\u043c\u044b\u043c \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c. <br \/>  \u041e\u0434\u043d\u0430 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u043b\u044e\u0448\u0435\u043a \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u043b\u0435\u0435\u0440\u043e\u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 mpris2 \u0432 sound indicator.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u044d\u0442\u043e\u0442 sound indicator<\/b><\/p>\n<div class=\"spoiler_text\">\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043a \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u043e\u043c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u0441\u0440\u0430\u0437\u0443 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0447\u0430\u0441\u043e\u0432:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/636\/01e\/3d5\/63601e3d5401d338000864b90ed94c83.png\" alt=\"image\"\/> <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/c20\/c20\/97c\/c20c2097c140b5e72c93889674f75e7f.png\" alt=\"image\"\/><\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043f\u043b\u0435\u0435\u0440, \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u044d\u0442\u043e\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u0418 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0431\u044b \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u044d\u0442\u0430 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c, \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u043e\u043c\u0443 \u043a\u0430\u043f\u0440\u0438\u0437\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u043a\u0440\u043e\u043c\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u043d\u044f \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0422\u0435, \u043a\u043e\u043c\u0443 \u043d\u0435 \u043e\u0445\u043e\u0442\u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0432\u0441\u0451 \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e, \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0431\u043b\u0438\u0436\u0435 \u043a \u043a\u043e\u043d\u0446\u0443 \u0441\u0442\u0430\u0442\u044c\u0438, \u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u043d\u0430 <a href=\"http:\/\/mkwork.github.io\/usc-cli\">github<\/a>. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0448\u0443 \u0437\u0430 \u043c\u043d\u043e\u0439.<\/p>\n<h4>\u0421 \u0447\u0435\u0433\u043e \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435?<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0432\u0440\u0430\u0437\u0443\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043d\u0435 \u0434\u0430\u0441\u0442 \u2014 \u043f\u0430\u0440\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043f\u043b\u0435\u0435\u0440\u043e\u0432, \u0434\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0431\u0430\u0433 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438.<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u0442\u0430, \u0434\u0430\u0431\u044b \u0434\u043e\u043f\u0438\u043b\u0438\u0442\u044c \u043d\u0430\u043f\u0438\u043b\u044c\u043d\u0438\u043a\u043e\u043c \u043d\u0435\u0445\u0432\u0430\u0442\u0430\u044e\u0449\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b. \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u043d\u0430 <a href=\"https:\/\/unity.ubuntu.com\/\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 unity<\/a> \u0435\u0441\u0442\u044c \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u0447\u0442\u043e \u0431\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0437\u0430\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/unity.ubuntu.com\/getinvolved\/\">\u00abGet involved\u00bb<\/a>, \u0440\u0430\u0437 \u0443\u0436 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u044c\u0441\u044f \u0431\u044b\u0442\u044c \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u044b\u043c\u0438 \u0432\u043e \u0432\u0441\u0451 \u044d\u0442\u043e. \u0414\u0430\u043b\u0435\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/unity.ubuntu.com\/getinvolved\/development\/\">\u00abDevelopment\u00bb<\/a>, \u0442.\u043a. \u0445\u043e\u0442\u0438\u043c \u043c\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u043d\u0443 \u0430 \u0440\u0430\u0437 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0442\u043e \u043d\u0430\u0448 \u043f\u0443\u0442\u044c \u043b\u0435\u0436\u0438\u0442 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/unity.ubuntu.com\/getinvolved\/development\/common-components\/\">\u00abCommon components\u00bb<\/a>. \u0413\u0434\u0435 \u043c\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u043d\u0430\u0448 \u0434\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440, \u0445\u043e\u0442\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u043d \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c <a href=\"https:\/\/unity.ubuntu.com\/getinvolved\/development\/common-components\/#sound-menu\">\u00abSound Menu\u00bb<\/a>, \u0445\u043e\u0442\u044f \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u043d \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u043a indicator, \u043d\u0443 \u0434\u0430 \u043b\u0430\u0434\u043d\u043e.<\/p>\n<h4>\u0417\u0430\u043f\u0438\u043b\u0438\u0442\u044c, \u0437\u0430\u043f\u0438\u043b\u0438\u0442\u044c \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e<\/h4>\n<p>  \u041a\u0430\u0447\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438\u2026 <\/p>\n<pre><code class=\"bash\">bzr branch lp:indicator-sound <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0435\u043b\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 vala. \u041f\u0435\u0440\u0432\u044b\u043c \u043f\u043e\u0440\u044b\u0432\u043e\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u0438\u043b\u0438\u0442\u044c \u043f\u043e\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u044c \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0442\u0440\u0443\u0434\u0430 \u043f\u0440\u0430\u0432\u0435\u0434\u043d\u043e\u0433\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u043a\u0443\u043a\u0430, \u043d\u0430\u0432\u0435\u044f\u043d\u0430\u044f \u043c\u044b\u0441\u043b\u044f\u043c\u0438, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u044c\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0441\u0430\u043c\u044b\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u0432\u044b\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e, \u0440\u0430\u0437\u0440\u0443\u043b\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u0441 \u0433\u043e\u0440\u044f\u0447\u0438\u043c\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438 \u0432\u044b\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u044d\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 vala, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430 \u043c\u0435\u043d\u044f, \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h4>\u0427\u0442\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u043c<\/h4>\n<p>  \u0412\u0441\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u043c\u043e\u0433\u0443\u0449\u0438\u0435 \u043d\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c, \u043b\u0435\u0436\u0430\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 src. \u041d\u0430\u0447\u043d\u0435\u043c \u043a\u0430\u043a \u0438 \u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 main.vala:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">main.vala<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"vala\">[CCode (cheader_filename=&quot;libintl.h&quot;, type=&quot;char *&quot;)] extern unowned string bind_textdomain_codeset (string domainname, string codeset);  static int main (string[] args) { \tbind_textdomain_codeset (Config.GETTEXT_PACKAGE, &quot;UTF-8&quot;); \tIntl.setlocale (LocaleCategory.ALL, &quot;&quot;); \tIntl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);  \tNotify.init (&quot;indicator-sound&quot;);  \tvar service = new IndicatorSound.Service (); \treturn service.run (); }  <\/code><\/pre>\n<p>   <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u043a\u0430\u043a\u043e\u0435 \u0442\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 UI \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0438\u043a\u043e\u043d\u043a\u0443 \u0432 \u0442\u0440\u0435\u0435, \u0430 \u043d\u0435\u043a\u0430\u044f \u0441\u043b\u0443\u0436\u0431\u0430:  <\/p>\n<pre><code class=\"vala\"> var service = new IndicatorSound.Service ();<\/code><\/pre>\n<p>  \u0420\u0430\u0437 \u043e\u043d\u043e \u0441\u043b\u0443\u0436\u0431\u0430, \u0437\u043d\u0430\u0447\u0438\u0442, \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e \u043d\u0435\u043a\u043e\u0435\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u0437\u0430\u0433\u043b\u044f\u043d\u0435\u043c \u043f\u043e\u0433\u043b\u0443\u0431\u0436\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 service.vala. \u0421\u0442\u0440\u043e\u043a\u0438 \u0432\u0438\u0434\u0430:  <\/p>\n<pre><code class=\"vala\">\/\/... \tvoid bus_acquired (DBusConnection connection, string name) {\/\/...} \/\/... \tvoid name_lost (DBusConnection connection, string name) {\/\/...} \/\/... <\/code><\/pre>\n<p>  \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e, \u043d\u0430\u0432\u043e\u0434\u044f\u0442 \u043d\u0430 \u043c\u044b\u0441\u043b\u0438 \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u043c\u0435\u0448\u0430\u043d\u0430 \u043d\u0435\u043a\u0430\u044f \u0448\u0438\u043d\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <a href=\"http:\/\/ru.wikipedia.org\/wiki\/D-Bus\">D-Bus<\/a>. \u0411\u0435\u0433\u043b\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u043e\u0431\u044c\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0440\u0435\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0447\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e, <a href=\"http:\/\/askubuntu.com\/a\/186311\">\u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0440\u0433\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438<\/a> \u0438, \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, <a href=\"http:\/\/dbus.freedesktop.org\/doc\/dbus-monitor.1.html\">\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u043e, \u043a\u0430\u043a \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b<\/a>. \u0422\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0438 GUI \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"http:\/\/doc.qt.digia.com\/4.6\/qdbusviewer.html\">qdbusviewer<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u043e\u0439: <\/p>\n<pre><code class=\"bash\">sudo apt-get install qdbus-qt5<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 run, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u044c\u0441\u044f \u0432 main:  <\/p>\n<pre><code class=\"vala\">\tpublic int run () { \t\tif (this.loop != null) { \t\t\twarning (&quot;service is already running&quot;); \t\t\treturn 1; \t\t}  \t\tBus.own_name (BusType.SESSION, &quot;com.canonical.indicator.sound&quot;, BusNameOwnerFlags.NONE, \t\t\tthis.bus_acquired, null, this.name_lost);  \t\tthis.loop = new MainLoop (null, false); \t\tthis.loop.run ();  \t\treturn 0; \t} <\/code><\/pre>\n<p>  <a href=\"http:\/\/valadoc.org\/#!api=gio-2.0\/GLib.Bus.own_name\">\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u043f\u0440\u043e \u043c\u0435\u0442\u043e\u0434 own_name \u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e \u0447\u0442\u043e \u0442\u043e \u043c\u0430\u043b\u043e \u0432\u0440\u0430\u0437\u0443\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435, \u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0441\u0451 \u043a\u0430\u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u0448\u0438\u043d\u0435.<\/p>\n<h4>\u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/h4>\n<p>  \u041a\u043e\u043c\u043c\u0430\u043d\u0434\u0430 gdbus \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0449\u0430\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 introspect:   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">$ gdbus introspect --session --dest com.canonical.indicator.sound --object-path \\ \/com\/canonical\/indicator\/sound  node \/com\/canonical\/indicator\/sound {   interface org.freedesktop.DBus.Properties {     methods:       Get(in  s interface_name,           in  s property_name,           out v value);       GetAll(in  s interface_name,              out a{sv} properties);       Set(in  s interface_name,           in  s property_name,           in  v value);     signals:       PropertiesChanged(s interface_name,                         a{sv} changed_properties,                         as invalidated_properties);     properties:   };   interface org.freedesktop.DBus.Introspectable {     methods:       Introspect(out s xml_data);     signals:     properties:   };   interface org.freedesktop.DBus.Peer {     methods:       Ping();       GetMachineId(out s machine_uuid);     signals:     properties:   };   interface org.gtk.Actions {     methods:       List(out as list);       Describe(in  s action_name,                out (bgav) description);       DescribeAll(out a{s(bgav)} descriptions);       Activate(in  s action_name,                in  av parameter,                in  a{sv} platform_data);       SetState(in  s action_name,                in  v value,                in  a{sv} platform_data);     signals:       Changed(as removals,               a{sb} enable_changes,               a{sv} state_changes,               a{s(bgav)} additions);     properties:   };   node desktop_greeter {   };   node phone {   };   node desktop {   }; }; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u043e\u0439, \u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0434\u043b\u044f \u043d\u0430\u0441 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 org.gtk.Actions. \u042d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441 \u043f\u043b\u0435\u0435\u0440\u043e\u043c vkcom, \u0445\u043e\u0442\u044f, \u043f\u043e \u0438\u0434\u0435\u0435 \u0441\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\">dbus-monitor &gt; monitor.log<\/code><\/pre>\n<p>  \u0418 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u0441 \u043d\u0430\u0448\u0438\u043c \u043f\u043b\u0435\u0435\u0440\u043e\u043c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u0436\u043c\u0435\u043c Play, Pause, Next \u0438 Previous.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0439\u0434\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u043b\u043e\u0433\u0435:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">.... #\u042f\u0432\u043d\u043e \u0432\u044b\u0437\u043e\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0441\u0443\u0434\u0438\u0442\u044c \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0437\u043d\u0430\u0447\u0438\u0442 \u0433\u0434\u0435 \u0442\u043e \u043d\u0438\u0436\u0435, \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u044b \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f method call sender=:1.9 -&gt; dest=:1.19 serial=27912 path=\/com\/canonical\/indicator\/sound; interface=org.gtk.Actions; member=Activate    string &quot;play.vkcomvkcom.desktop&quot;    array [    ]    array [    ] ... #\u0418 \u0442\u043e\u0447\u043d\u043e: ... #Next method call sender=:1.9 -&gt; dest=:1.19 serial=27918 path=\/com\/canonical\/indicator\/sound; interface=org.gtk.Actions; member=Activate    string &quot;next.vkcomvkcom.desktop&quot;    array [    ]    array [    ] ... #Previous method call sender=:1.9 -&gt; dest=:1.19 serial=27918 path=\/com\/canonical\/indicator\/sound; interface=org.gtk.Actions; member=Activate    string &quot;previous.vkcomvkcom.desktop&quot;    array [    ]    array [    ] ... <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0410 \u0433\u0434\u0435 \u0436\u0435 Pause \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b? \u0425\u043c, \u0430 \u043d\u0435\u0442\u0443\u0442\u044c, \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e Play\/Pause, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0439 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0435\u043c \u043a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e org.gtk.Actions \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0435\u0431\u044f \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043b\u0438, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043d\u0435\u0436\u0435\u043b\u0438 \u0442\u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438\u043c\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0438 \u0442\u044b\u043a\u0430\u043d\u0438\u0438 \u0432 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439:  <\/p>\n<pre><code class=\"bash\">#Play\/Pause gdbus call --session --dest com.canonical.indicator.sound --object-path \/com\/canonical\/indicator\/sound \\ --method org.gtk.Actions.Activate   'play.vkcomvkcom.desktop' [] {} #Next gdbus call --session --dest com.canonical.indicator.sound --object-path \/com\/canonical\/indicator\/sound \\  --method org.gtk.Actions.Activate   'next.vkcomvkcom.desktop' [] {} #Previous  \u0438 \u0442.\u0434 \u0438 \u0442.\u043f. ... <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\">gdbus call --session --dest com.canonical.indicator.sound --object-path \/com\/canonical\/indicator\/sound --method org.gtk.Actions.List <\/code><\/pre>\n<p>  \u0414\u0443\u043c\u0430\u044e \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u043e\u043d\u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b \u0432\u044b \u0443\u0436\u0435 \u0443\u043b\u043e\u0432\u0438\u043b\u0438.<\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u041a\u0440\u0443\u0442\u043e, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u0414\u0430, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u2014 \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0433\u043e \u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043b\u0435\u0435\u0440\u0430\u2026 \u041d\u043e, \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434.<br \/>  \u041d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u0443 \u0432\u0430\u0441, \u0430 \u0443 \u043c\u0435\u043d\u044f, \u043e\u0431\u044b\u0447\u043d\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043b\u0435\u0435\u0440\u0430, \u0438 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0438 \u0432\u0441\u0435\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u00ab\u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e\u00bb \u043f\u043b\u0435\u0435\u0440\u0430, \u0432\u0435\u0434\u044c \u0438\u0433\u0440\u0430\u0442\u044c \u043c\u043e\u0433\u0443\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u043c\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043d\u0435 \u043c\u0435\u0448\u0430\u043b\u043e \u0431\u044b, \u0438\u043c\u0435\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u044c\u0441\u044f indicator sound service. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u0435\u0436\u0438\u0442 \u0432 \u043d\u0435\u043a\u043e\u0439 \u00abdconf databse\u00bb, \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b dconf. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c?  <\/p>\n<pre><code class=\"bash\">dconf read \/com\/canonical\/indicator\/sound\/interested-media-players<\/code><\/pre>\n<p>  \u041d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0447\u0438\u0442\u0430\u0435\u043c\u043e? \u0410 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">dconf read \/com\/canonical\/indicator\/sound\/interested-media-players | sed  -e &quot;s:[],'\\[]::g&quot; -e &quot;s:\\s:\\n:g&quot;<\/code><\/pre>\n<p>  <a href=\"http:\/\/www.grymoire.com\/Unix\/Sed.html\">Sed \u043d\u0430\u0448\u0435 \u0432\u0441\u0435<\/a>. \u041d\u0443 \u0438 \u0447\u0442\u043e, \u0430 \u043a\u0430\u043a \u0436\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u00ab\u0442\u0435\u043a\u0443\u0449\u0438\u0439\u00bb? \u041d\u0443, \u044f \u0440\u0435\u0448\u0438\u043b \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0442\u0430\u043a:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#\u041c\u0435\u0441\u0442\u043e \u0433\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u043b\u0435\u0435\u0440\u0435 UCS_CACHE=~\/.cache\/unity-control-sound UCS_CURRENT_PLAYER_FILE=$UCS_CACHE\/current-player #\u0421\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0440\u0435\u0433\u0435\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439 UCS_INTERESTED_PLAYERS=`dconf read \\     \/com\/canonical\/indicator\/sound\/interested-media-players \\     | sed  -e&quot;s:[],'\\[]::g&quot; ` #\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439 UCS_PREFFERED_PLAYERS=`dconf read \/com\/canonical\/indicator\/sound\/preferred-media-players \\     | sed  -e &quot;s:[],'\\[]::g&quot;`  mkdir -p $UCS_CACHE touch $UCS_CURRENT_PLAYER_FILE UCS_CURRENT_PLAYER=`cat $UCS_CURRENT_PLAYER_FILE`  function initialize-current-player {     #\u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u044c\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0437\u0430\u0440\u0435\u0433\u0435\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439     if ! echo $UCS_INTERESTED_PLAYERS | grep -q $UCS_CURRENT_PLAYER ;     then         #\u0414\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445         UCS_CURRENT_PLAYER=`echo $UCS_PREFFERED_PLAYERS | grep -o &quot;^\\S*[^.]&quot;`         UCS_CURRENT_PLAYER=`echo $UCS_CURRENT_PLAYER | sed &quot;s\/\\s\/\/g&quot;`         echo Current player now is '&quot;'$UCS_CURRENT_PLAYER'&quot;'     fi }  #\u041c\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 function player-next {     initial_player=$UCS_CURRENT_PLAYER     for player in $UCS_INTERESTED_PLAYERS      do         if [ -z &quot;$first_player&quot; ];         then             first_player=$player         fi          if [ &quot;$previous_player&quot; == &quot;$UCS_CURRENT_PLAYER&quot; ];         then             UCS_CURRENT_PLAYER=$player             break         fi         previous_player=$player     done     if [ &quot;$initial_player&quot; == &quot;$UCS_CURRENT_PLAYER&quot; ];     then         UCS_CURRENT_PLAYER=$first_player     fi     echo $UCS_CURRENT_PLAYER &gt; $UCS_CURRENT_PLAYER_FILE }  #\u041f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 function player-previous {     initial_player=$UCS_CURRENT_PLAYER     for player in $UCS_INTERESTED_PLAYERS      do         if [ -z &quot;$first_player&quot; ];         then             first_player=$player         fi          if [ &quot;$player&quot; == &quot;$UCS_CURRENT_PLAYER&quot; ];         then             UCS_CURRENT_PLAYER=$previous_player         fi         previous_player=$player     done     if [ -z &quot;$UCS_CURRENT_PLAYER&quot; ];     then         UCS_CURRENT_PLAYER=$previous_player     fi     echo $UCS_CURRENT_PLAYER &gt; $UCS_CURRENT_PLAYER_FILE } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u043a\u043e\u0439 \u043d\u0438\u043a\u0430\u043a\u043e\u0439, \u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438. \u041d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0447\u0442\u043e \u0431\u044b \u044d\u0442\u043e \u0435\u0449\u0451 \u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e, \u0438 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u043a \u0442\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u043b\u043e \u0441\u0435\u0431\u044f \u043d\u0430 UI:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#\u0422\u043e, \u0447\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u043a\u0430\u043a \u0438\u043c\u044f \u043f\u043b\u0435\u0435\u0440\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u044d\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0438\u043c\u044f  #\u044f\u0440\u043b\u044b\u043a\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0433\u0430\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0443\u0442\u0435\u0439: UCS_SYSTEM_WIDE_LAUNCHERS_PATH=\/usr\/share\/applications UCS_LAUNCHERS_PATH=~\/.local\/share\/applications  #\u041d\u0430\u0439\u0442\u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u044f\u0440\u043b\u044b\u043a\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043b\u0435\u0435\u0440\u0430 function player-launcher {     name=$1     launcher=$UCS_LAUNCHERS_PATH\/$name      system_wide_launcher=$UCS_SYSTEM_WIDE_LAUNCHERS_PATH\/$name      if [ -f &quot;$launcher&quot; ];     then         echo $launcher      else         echo $system_wide_launcher      fi }  #\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0435 \u0438\u043c\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u0437 \u0435\u0433\u043e \u044f\u0440\u043b\u044b\u043a\u0430 function player-display-name {     name=$1     launcher=`player-launcher $name`     if [ -f &quot;$launcher&quot; ];     then         cat $launcher | grep -m 1 &quot;^Name=&quot; \\             | sed &quot;s\/Name=\/\/&quot;     else         echo $player | sed &quot;s\/.desktop\/\/&quot;     fi  }  #\u0412\u044b\u0434\u0440\u0430\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 \u0436\u0435 \u0438\u043a\u043e\u043d\u043a\u0443, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u0430\u044f \u0438\u043c\u0435\u0435\u0442\u044c\u0441\u044f function current-player-icon {     launcher=`player-launcher $UCS_CURRENT_PLAYER`     if [ -f &quot;$launcher&quot; ];     then         cat $launcher | grep &quot;Icon=&quot; \\             | sed &quot;s\/Icon=\/\/&quot;     fi }  #\u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u044e \u0438\u043c\u0435\u044e\u0449\u0443\u044e\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u0432 \u0432\u0438\u0434\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f function show-current-player {     echo Curent player '&quot;'$UCS_CURRENT_PLAYER'&quot;'     for player in $UCS_INTERESTED_PLAYERS     do        if [ $player == $UCS_CURRENT_PLAYER ];        then            players=$players*        fi         player_name=`player-display-name $player`        players=$players$player_name\\\\n     done     icon=`current-player-icon`     if ! [ -z $icon ];     then         icon=&quot;-i $icon&quot;     fi      echo Icon is &quot;$icon&quot;     notify-send &quot;Players:&quot; &quot;$players&quot; $icon -t 1 } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u043a \u0432\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 notify-send, \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u043b\u0435\u0435\u0440\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Ubuntu \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u044b \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u043b\u0430\u0433 -t, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0438\u0439 \u0442\u0430\u0439\u043c\u0430\u0443\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u044c\u0441\u044f \u043d\u0435\u043f\u0440\u0438\u043b\u0438\u0447\u043d\u043e \u0434\u043e\u043b\u0433\u043e. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"http:\/\/askubuntu.com\/questions\/128474\/how-to-customize-on-screen-notifications\/128508#128508\">\u044d\u0442\u0438\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438<\/a>. \u041a\u0442\u043e \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0436\u0435\u0442 \u2014 \u044d\u0442\u043e \u043d\u0435 unix way, \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0438\u0445 \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 UI, \u044f \u0441\u043e\u0433\u043b\u0430\u0448\u0443\u0441\u044c, \u043d\u043e \u0434\u0430\u0431\u044b \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a.<br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u043d\u0430\u0432\u044b\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 gdbus, \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437 \u0442\u0440\u0443\u0434\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0438\u0442\u043e\u0433\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u043d\u0430 <a href=\"http:\/\/mkwork.github.io\/usc-cli\">github<\/a>. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0445\u043e\u0447\u0443 \u043b\u0438\u0448\u044c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0442\u0440\u0435\u043a\u0435. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (gtk.Action), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 org.gtk.Actions.Describe, \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">gdbus call --session --dest com.canonical.indicator.sound --object-path \/com\/canonical\/indicator\/sound \\ --method org.gtk.Actions.Describe vkcomvkcom.desktop <\/code><\/pre>\n<p>  \u0412 \u0432\u044b\u0432\u043e\u0434\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0442\u0440\u0435\u043a\u0430, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u044c\u0441\u044f.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e CompizConfig, \u0442.\u043a. \u0448\u0442\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c (Ubuntu 13.10), \u0443\u0436 \u043d\u0435 \u0437\u043d\u0430\u044e \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0441\u043a\u043e\u0440\u0435 \u044d\u0442\u043e \u043f\u043e\u0447\u0438\u043d\u044f\u0442.<br \/>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c CompizConfig \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043b\u044c\u0437\u0443\u044f \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\">sudo apt-get install compizconfig-settings-manager<\/code><\/pre>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/18a\/cb3\/e7d\/18acb3e7d81bd0b43e8d865fdce6e822.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8c9\/b23\/133\/8c9b23133ce13fe71a1b654646b7d469.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8bb\/8cf\/52c\/8bb8cf52c9491f10cb5d73010afd2749.png\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/203504\/\"> http:\/\/habrahabr.ru\/post\/203504\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u042f, \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u043a\u043e\u0433\u043e \u043c\u043e\u0433 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442, \u043b\u044e\u0431\u043b\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443 Unity \u0437\u0430 \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0433\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043b\u044e\u0448\u043a\u0438 \u043f\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0441\u0430\u043c\u044b\u043c \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c. <br \/>  \u041e\u0434\u043d\u0430 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u043b\u044e\u0448\u0435\u043a \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u043b\u0435\u0435\u0440\u043e\u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 mpris2 \u0432 sound indicator.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u044d\u0442\u043e\u0442 sound indicator<\/b><\/p>\n<div class=\"spoiler_text\">\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043a \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u043e\u043c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u0441\u0440\u0430\u0437\u0443 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0447\u0430\u0441\u043e\u0432:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/636\/01e\/3d5\/63601e3d5401d338000864b90ed94c83.png\" alt=\"image\"\/> <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/c20\/c20\/97c\/c20c2097c140b5e72c93889674f75e7f.png\" alt=\"image\"\/><\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043f\u043b\u0435\u0435\u0440, \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u044d\u0442\u043e\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u0418 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0431\u044b \u043a\u0440\u0443\u0442\u043e, \u043d\u043e \u044d\u0442\u0430 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c, \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u043e\u043c\u0443 \u043a\u0430\u043f\u0440\u0438\u0437\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u043a\u0440\u043e\u043c\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0443\u0440\u043e\u0432\u043d\u044f \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-203504","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203504"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203504\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}