diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:32:17 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:32:17 -0500 |
commit | df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443 (patch) | |
tree | b5e27ebd0cea42abee2b3ef0981087cd2c3a57eb /awesome/func/noborders.lua | |
parent | 572382a9ce99162bd93d2d6e3fd789f2c99bf420 (diff) | |
download | dotconfig-df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443.tar.xz dotconfig-df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443.zip |
remove awesome config, push to own repo
Diffstat (limited to 'awesome/func/noborders.lua')
-rw-r--r-- | awesome/func/noborders.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/awesome/func/noborders.lua b/awesome/func/noborders.lua deleted file mode 100644 index fe67024..0000000 --- a/awesome/func/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 |