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