player & notification fixs

This commit is contained in:
Luca 2023-02-05 07:23:18 +01:00
parent 4dfa85c4fc
commit f1f6af30c7
2 changed files with 14 additions and 10 deletions

View file

@ -11,6 +11,10 @@ local beautiful = require('beautiful')
local dpi = beautiful.xresources.apply_dpi
local naughty = require("naughty")
-- # Libs :
-- ~~~~~~~~
local helpers = require("libs.helpers")
naughty.config.defaults.ontop = true
naughty.config.defaults.screen = awful.screen.focused()
naughty.config.defaults.timeout = 5
@ -69,7 +73,7 @@ local function create_notifcation(n)
title.markup = n.title
local message = wibox.widget.textbox()
message.font = "Roboto Mono 12"
message.font = "Roboto Medium 11"
message.align = 'left'
message.markup = n.message
@ -82,8 +86,8 @@ local function create_notifcation(n)
widget = wibox.widget.imagebox,
},
strategy = "max",
width = dpi(60),
height = dpi(60),
width = dpi(30),
height = dpi(30),
widget = wibox.container.constraint,
},
expand = 'none',
@ -110,9 +114,9 @@ local function create_notifcation(n)
naughty.layout.box {
notification = n,
type = "notification",
bg = beautiful.bg,
bg = colors.black,
border_width = 0,
shape = function(cr,w,h) gears.shape.rounded_rect(cr,w,h,8) end,
shape = helpers.rrect(theme.rounded),
widget_template = {
{
{
@ -120,7 +124,7 @@ local function create_notifcation(n)
widget = container,
},
strategy = "max",
width = dpi(620),
width = dpi(420),
widget = wibox.container.constraint,
},
strategy = "min",
@ -128,7 +132,7 @@ local function create_notifcation(n)
height = dpi(80),
widget = wibox.container.constraint,
},
bg = colors.brightblack,
bg = colors.container,
widget = wibox.container.background,
}
}

View file

@ -25,8 +25,8 @@ local music_art_filter = wibox.widget({
{
bg = {
type = "linear",
from = { 0, 0 },
to = { 0, 150},
from = { 0, 30 },
to = { 0, 200},
stops = {
{ 0, colors.transparent},
{ 1, colors.container }
@ -116,7 +116,7 @@ local prev_button = wibox.widget{
local music_bar = wibox.widget({
max_value = 100,
value = 0,
background_color = colors.black,
background_color = colors.brightblack,
-- shape = gears.shape.rounded_bar,
color = colors.main_scheme,
forced_height = dpi(6),