{"id":164,"date":"2023-03-29T19:28:29","date_gmt":"2023-03-29T19:28:29","guid":{"rendered":"https:\/\/blog.nmoleosoftware.com\/?p=164"},"modified":"2023-07-10T15:22:49","modified_gmt":"2023-07-10T15:22:49","slug":"volume-and-brightness-indicator-for-i3wm","status":"publish","type":"post","link":"https:\/\/blog.nmoleosoftware.com\/index.php\/2023\/03\/29\/volume-and-brightness-indicator-for-i3wm\/","title":{"rendered":"Windows-Style Media &amp; Brightness Notifications using Dunst"},"content":{"rendered":"\n<p>I made a Bash script that uses Dunst to show an indicator on the screen when the volume, brightness, and song are changed. It ties into playerctl to fetch the current song title\/artist\/album. It can fetch the album art from a file or URL, and it will cache album art files in \/tmp to reduce data usage and improve speeds. Album art has been tested with YouTube and Spotify on Arch Linux.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-2 wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"125\" data-id=\"182\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/1-1.png\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/1-1.png 414w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/1-1-300x91.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"134\" data-id=\"184\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/4-1.png\" alt=\"\" class=\"wp-image-184\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/4-1.png 420w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/4-1-300x96.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"411\" height=\"97\" data-id=\"181\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/2-1.png\" alt=\"\" class=\"wp-image-181\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/2-1.png 411w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/2-1-300x71.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"104\" data-id=\"185\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/5-1.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/5-1.png 417w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/5-1-300x75.png 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"106\" data-id=\"186\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/7-1.png\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/7-1.png 415w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/7-1-300x77.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"77\" data-id=\"183\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/6-1.png\" alt=\"\" class=\"wp-image-183\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/6-1.png 413w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/6-1-300x56.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"79\" data-id=\"180\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/3-1.png\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/3-1.png 417w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/3-1-300x57.png 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"81\" data-id=\"187\" src=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/8-1.png\" alt=\"\" class=\"wp-image-187\" srcset=\"https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/8-1.png 414w, https:\/\/blog.nmoleosoftware.com\/wp-content\/uploads\/2023\/07\/8-1-300x59.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Check it out <a href=\"https:\/\/gitlab.com\/Nmoleo\/i3-volume-brightness-indicator\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I made a Bash script that uses Dunst to show an indicator on the screen when the volume, brightness, and song are changed. It ties into playerctl to fetch the current song title\/artist\/album. It can fetch the album art from a file or URL, and it will cache album art files in \/tmp to reduce&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":168,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":6,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/164\/revisions\/190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/media\/168"}],"wp:attachment":[{"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nmoleosoftware.com\/index.php\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}