From: Samir Benmendil Date: Mon, 10 Aug 2020 21:55:48 +0000 (+0100) Subject: awesome/mpd_widget: add defalut album art if none available X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ff9af57f2cf94b4076e98ad06fd41988987995f7?ds=inline awesome/mpd_widget: add defalut album art if none available --- diff --git a/awesome/themes/mlp/mpd_default_album.license b/awesome/themes/mlp/mpd_default_album.license new file mode 100644 index 0000000..0f652ee --- /dev/null +++ b/awesome/themes/mlp/mpd_default_album.license @@ -0,0 +1,2 @@ +Fyrsten / CC BY-SA (https://creativecommons.org/licenses/by-sa/3.0) +https://commons.wikimedia.org/wiki/File:LP_vinyl3.png diff --git a/awesome/themes/mlp/mpd_default_album.png b/awesome/themes/mlp/mpd_default_album.png new file mode 100644 index 0000000..65de96c Binary files /dev/null and b/awesome/themes/mlp/mpd_default_album.png differ diff --git a/awesome/themes/mlp/theme.lua b/awesome/themes/mlp/theme.lua index 90f5763..3d83e8f 100644 --- a/awesome/themes/mlp/theme.lua +++ b/awesome/themes/mlp/theme.lua @@ -95,6 +95,8 @@ theme.layout_cornerse = theme.path.."/layouts/cornersew.png" theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png" +theme.mpd_default_album = theme.path.."/mpd_default_album.png" + -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. theme.icon_theme = nil diff --git a/awesome/widgets/mpd_widget.lua b/awesome/widgets/mpd_widget.lua index 8e962c6..e71e087 100644 --- a/awesome/widgets/mpd_widget.lua +++ b/awesome/widgets/mpd_widget.lua @@ -79,7 +79,7 @@ function widget:popup_show() if self._notification then return end self._notification = naughty.notify( { title = table.title - , icon = table.icon + , icon = table.icon or beautiful.mpd_default_album , icon_size = 64 , text = table.text , timeout = 0