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 }