player & notification fixs
This commit is contained in:
parent
4dfa85c4fc
commit
f1f6af30c7
2 changed files with 14 additions and 10 deletions
|
@ -11,6 +11,10 @@ local beautiful = require('beautiful')
|
||||||
local dpi = beautiful.xresources.apply_dpi
|
local dpi = beautiful.xresources.apply_dpi
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
|
|
||||||
|
-- # Libs :
|
||||||
|
-- ~~~~~~~~
|
||||||
|
local helpers = require("libs.helpers")
|
||||||
|
|
||||||
naughty.config.defaults.ontop = true
|
naughty.config.defaults.ontop = true
|
||||||
naughty.config.defaults.screen = awful.screen.focused()
|
naughty.config.defaults.screen = awful.screen.focused()
|
||||||
naughty.config.defaults.timeout = 5
|
naughty.config.defaults.timeout = 5
|
||||||
|
@ -69,7 +73,7 @@ local function create_notifcation(n)
|
||||||
title.markup = n.title
|
title.markup = n.title
|
||||||
|
|
||||||
local message = wibox.widget.textbox()
|
local message = wibox.widget.textbox()
|
||||||
message.font = "Roboto Mono 12"
|
message.font = "Roboto Medium 11"
|
||||||
message.align = 'left'
|
message.align = 'left'
|
||||||
message.markup = n.message
|
message.markup = n.message
|
||||||
|
|
||||||
|
@ -82,8 +86,8 @@ local function create_notifcation(n)
|
||||||
widget = wibox.widget.imagebox,
|
widget = wibox.widget.imagebox,
|
||||||
},
|
},
|
||||||
strategy = "max",
|
strategy = "max",
|
||||||
width = dpi(60),
|
width = dpi(30),
|
||||||
height = dpi(60),
|
height = dpi(30),
|
||||||
widget = wibox.container.constraint,
|
widget = wibox.container.constraint,
|
||||||
},
|
},
|
||||||
expand = 'none',
|
expand = 'none',
|
||||||
|
@ -110,9 +114,9 @@ local function create_notifcation(n)
|
||||||
naughty.layout.box {
|
naughty.layout.box {
|
||||||
notification = n,
|
notification = n,
|
||||||
type = "notification",
|
type = "notification",
|
||||||
bg = beautiful.bg,
|
bg = colors.black,
|
||||||
border_width = 0,
|
border_width = 0,
|
||||||
shape = function(cr,w,h) gears.shape.rounded_rect(cr,w,h,8) end,
|
shape = helpers.rrect(theme.rounded),
|
||||||
widget_template = {
|
widget_template = {
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -120,7 +124,7 @@ local function create_notifcation(n)
|
||||||
widget = container,
|
widget = container,
|
||||||
},
|
},
|
||||||
strategy = "max",
|
strategy = "max",
|
||||||
width = dpi(620),
|
width = dpi(420),
|
||||||
widget = wibox.container.constraint,
|
widget = wibox.container.constraint,
|
||||||
},
|
},
|
||||||
strategy = "min",
|
strategy = "min",
|
||||||
|
@ -128,7 +132,7 @@ local function create_notifcation(n)
|
||||||
height = dpi(80),
|
height = dpi(80),
|
||||||
widget = wibox.container.constraint,
|
widget = wibox.container.constraint,
|
||||||
},
|
},
|
||||||
bg = colors.brightblack,
|
bg = colors.container,
|
||||||
widget = wibox.container.background,
|
widget = wibox.container.background,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,8 @@ local music_art_filter = wibox.widget({
|
||||||
{
|
{
|
||||||
bg = {
|
bg = {
|
||||||
type = "linear",
|
type = "linear",
|
||||||
from = { 0, 0 },
|
from = { 0, 30 },
|
||||||
to = { 0, 150},
|
to = { 0, 200},
|
||||||
stops = {
|
stops = {
|
||||||
{ 0, colors.transparent},
|
{ 0, colors.transparent},
|
||||||
{ 1, colors.container }
|
{ 1, colors.container }
|
||||||
|
@ -116,7 +116,7 @@ local prev_button = wibox.widget{
|
||||||
local music_bar = wibox.widget({
|
local music_bar = wibox.widget({
|
||||||
max_value = 100,
|
max_value = 100,
|
||||||
value = 0,
|
value = 0,
|
||||||
background_color = colors.black,
|
background_color = colors.brightblack,
|
||||||
-- shape = gears.shape.rounded_bar,
|
-- shape = gears.shape.rounded_bar,
|
||||||
color = colors.main_scheme,
|
color = colors.main_scheme,
|
||||||
forced_height = dpi(6),
|
forced_height = dpi(6),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue