diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-11 20:43:20 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-11 20:43:20 -0500 |
commit | ce020ab718b0ea09224dd15fc9a5796b3acc7904 (patch) | |
tree | 5d1ab3fb93f85d6fbf1b9fe84dfcd3484ce6ef33 /awesome/noborders.lua | |
parent | 5e84a09eb67772b07a73102538d2445ecb403613 (diff) | |
download | dotconfig-ce020ab718b0ea09224dd15fc9a5796b3acc7904.tar.xz dotconfig-ce020ab718b0ea09224dd15fc9a5796b3acc7904.zip |
overhaul awesome
Diffstat (limited to 'awesome/noborders.lua')
-rw-r--r-- | awesome/noborders.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/awesome/noborders.lua b/awesome/noborders.lua deleted file mode 100644 index fe67024..0000000 --- a/awesome/noborders.lua +++ /dev/null @@ -1,20 +0,0 @@ -local beautiful = require("beautiful") - --- TODO this function will call arrange multiple times. once per each change of c.border_width -local function update_borders(s) - local max = s.selected_tag.layout.name == "max" - local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count - - -- but iterate over clients instead of tiled_clients as tiled_clients doesn't include maximized windows - for _, c in pairs(s.clients) do - if c.prevent_kill then - c.border_width = beautiful.border_width * 3 - elseif (max or only_one or c.maximized) and not c.floating then - c.border_width = 0 - else - c.border_width = beautiful.border_width - end - end -end - -screen.connect_signal("arrange", update_borders) -- NOTE this signal may eventually be deprecated. see issue #2581 and the v5 milestone on github |