This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Restore last used floating client geometry (with / height / position) when | |
-- switching layouts and unmaximizing clients. | |
-- | |
-- When unmaximizing a never-before floating client, it will nicely center the | |
-- client in the middle of the screen. | |
-- | |
-- To use, just `require('restore_floating_clients')` in your `awesome/lua.rc` | |
-- Somewhere where you have your other signal callbacks. | |
local awful = require("awful") |