Skip to content

Instantly share code, notes, and snippets.

View guidipolito's full-sized avatar
🎯
Focusing

Dipolito guidipolito

🎯
Focusing
View GitHub Profile
@gitaarik
gitaarik / restore_floating_clients.lua
Last active January 21, 2025 00:32
Awesome WM script that restores floating clients geometry (width / height / position) when switching layouts or unmaximizing
-- 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")