lua rewrite

This commit is contained in:
2026-11-06 04:45:37 +01:00
parent e8ea7e1e2f
commit bd77e8dca2
20 changed files with 462 additions and 29 deletions
+11
View File
@@ -0,0 +1,11 @@
local function get_current_wm()
if os.getenv("SWAYSOCK") then
return "sway"
elseif os.getenv("HYPRLAND_INSTANCE_SIGNATURE") then
return "hyprland"
else
return "unknown"
end
end
return { name = "wm", cmd = get_current_wm }