fix window corners (now drawn by awesome, not picom) and wrong center bar radius
This commit is contained in:
@@ -19,7 +19,7 @@ return function(s, widget)
|
||||
maximum_width = dpi(500),
|
||||
placement = function(c) awful.placement.top(c, { margins = dpi(10) }) end,
|
||||
shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, 10)
|
||||
gears.shape.rounded_rect(cr, width, height, 5)
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ return function(screen, programs)
|
||||
bg = '00000000',
|
||||
forced_width = user_vars.dock_icon_size + dpi(20),
|
||||
forced_height = dpi(10),
|
||||
id = "fake",
|
||||
widget = wibox.container.background
|
||||
}
|
||||
end
|
||||
@@ -186,16 +187,20 @@ return function(screen, programs)
|
||||
end
|
||||
if s == mouse.screen then
|
||||
if mouse.current_widget then
|
||||
dock.visible = true
|
||||
return
|
||||
if tostring(mouse.current_widget):match("fake") then
|
||||
dock.visible = true
|
||||
return
|
||||
end
|
||||
end
|
||||
for j, c in ipairs(screen.selected_tag:clients()) do
|
||||
local y = c:geometry().y
|
||||
local h = c.height
|
||||
if (y + h) >= screen.geometry.height - user_vars.dock_icon_size - 35 then
|
||||
dock.visible = false
|
||||
return
|
||||
else
|
||||
dock.visible = true
|
||||
return
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
@@ -15,4 +15,4 @@ require("src.core.signals")
|
||||
require("mappings.global_buttons")
|
||||
require("mappings.bind_to_tags")
|
||||
require("crylia_bar.init")
|
||||
--require("src.tools.auto_starter")(user_vars.autostart)
|
||||
require("src.tools.auto_starter")(user_vars.autostart)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
-- Awesome Libs
|
||||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
|
||||
screen.connect_signal(
|
||||
"added",
|
||||
@@ -22,6 +23,9 @@ client.connect_signal(
|
||||
if awesome.startup and not c.size_hints.user_porition and not c.size_hints.program_position then
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
c.shape = function(cr, width, height)
|
||||
gears.shape.rounded_rect(cr, width, height, 10)
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ blur-background-exclude = [
|
||||
# ░█░█░█▀▀░█░█░█▀▀░█▀▄░█▀█░█░░░░░▀▀█░█▀▀░░█░░░█░░░█░░█░█░█░█░▀▀█
|
||||
# ░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░░░▀▀▀░▀▀▀░░▀░░░▀░░▀▀▀░▀░▀░▀▀▀░▀▀▀
|
||||
|
||||
corner-radius = 10.0
|
||||
#corner-radius = 10.0
|
||||
rounded-corners-exclude = [
|
||||
"name *= 'Awesome drawin'",
|
||||
"name *= 'polybar'",
|
||||
|
||||
Reference in New Issue
Block a user