making awesome more awesome
This commit is contained in:
parent
0a7fe89729
commit
3643ba277e
361 changed files with 41182 additions and 26 deletions
22
awesome/widget/music/content/album-cover.lua
Executable file
22
awesome/widget/music/content/album-cover.lua
Executable file
|
@ -0,0 +1,22 @@
|
|||
local gears = require('gears')
|
||||
local awful = require('awful')
|
||||
local wibox = require('wibox')
|
||||
|
||||
local dpi = require('beautiful').xresources.apply_dpi
|
||||
|
||||
local config_dir = gears.filesystem.get_configuration_dir()
|
||||
local widget_icon_dir = config_dir .. 'widget/music/icons/'
|
||||
|
||||
local album_cover_img = wibox.widget {
|
||||
{
|
||||
id = 'cover',
|
||||
image = widget_icon_dir .. 'vinyl' .. '.svg',
|
||||
resize = true,
|
||||
clip_shape = gears.shape.rounded_rect,
|
||||
widget = wibox.widget.imagebox,
|
||||
},
|
||||
layout = wibox.layout.fixed.vertical
|
||||
}
|
||||
|
||||
|
||||
return album_cover_img
|
Loading…
Add table
Add a link
Reference in a new issue